Fix mamapool NPE (#57)

Co-authored-by: Martin Robertz <[email protected]>
This commit is contained in:
Kogepan229andMartin Robertz authored and GitHub committed 2024-08-18 12:51:30 +00:00
1 parent 0872239905
commit 12f260d494
1 file changed
+3 -1
@@ -92,7 +92,9 @@ public class BlockPool extends BlockModContainer implements IWandHUD, IWandable,
@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);
}