Fixed a NPE with tank renderer

This commit is contained in:
Robert S 2014-03-24 07:31:22 -04:00
parent 3791924480
commit 296dc1422b

View file

@ -46,7 +46,7 @@ public class TileTank extends TileFluidDistribution implements IComparatorInputO
@Override
public boolean shouldSideBeRendered(IBlockAccess access, int x, int y, int z, int side)
{
return access.getBlockId(x, y, z) != block.blockID;
return access != null && block != null && access.getBlockId(x, y, z) != block.blockID;
}
@Override