Added a null check to tank air block

This commit is contained in:
Arthur Uzulin committed 2013-10-10 21:34:22 +11:00
1 parent 8b76a0ffe8
commit e013079fec
1 file changed
+1 -1
+1 -1
View File
@@ -58,7 +58,7 @@ public class TankAirBlock extends BlockContainer
public AxisAlignedBB getCollisionBoundingBoxFromPool (World world, int x, int y, int z)
{
TankAirLogic tank = (TankAirLogic) world.getBlockTileEntity(x, y, z);
if (tank.hasItem())
if (tank != null && tank.hasItem())
return super.getCollisionBoundingBoxFromPool(world, x, y, z);
return null;