Client Crash on getIcon()
sameer opened this issue ยท 4 comments
A player on my server experienced this crash related to the getIcon clientside function for rendering a power converter block. There is an NPE, I think it's because the TileEntity at the specific location(line 37) is null.
Crash Report: http://pastebin.com/Zbftj620
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side) {
int offset = ((TileEntityBridgeComponent<?>) world.getTileEntity(x, y, z)).isSideConnectedClient(side) ? 1 : 0; // line 37
return icons[world.getBlockMetadata(x, y, z) * 2 + offset];
}
Any ideas @covers1624 ?
Probably due to that, im going to do a rewrite soon, have just officially taken over cb's mods so once they are done 1.9 train for powerconverters.