mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 04:09:40 +00:00
Added a null check to tank air block
This commit is contained in:
1 parent
8b76a0ffe8
commit
e013079fec
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user