Fixed a NPE with tank renderer
This commit is contained in:
parent
3791924480
commit
296dc1422b
1 changed files with 172 additions and 172 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue