Skip to content

Commit

Permalink
Fix mamapool NPE (#57)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Robertz <dream-master@gmx.net>
  • Loading branch information
Kogepan229 and Dream-Master authored Aug 18, 2024
1 parent 0872239 commit 12f260d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ public int damageDropped(int meta) {
@Override
public void breakBlock(World par1World, int par2, int par3, int par4, Block par5, int par6) {
TilePool pool = (TilePool) par1World.getTileEntity(par2, par3, par4);
lastFragile = pool.fragile;
if (pool != null) {
lastFragile = pool.fragile;
}
super.breakBlock(par1World, par2, par3, par4, par5, par6);
}

Expand Down

0 comments on commit 12f260d

Please sign in to comment.