mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-21 04:32:23 +00:00
Fix mamapool NPE (#57)
Co-authored-by: Martin Robertz <[email protected]>
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user