Power Converters3

Power Converters3

433k Downloads

Client Crash on getIcon()

sameer opened this issue ยท 4 comments

commented

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 ?

commented

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.

commented

There will be a build soon, added checks to avoid this.

commented

Will this build be available for 1.7.10 as well ? or 1.9 only?

commented

1.7 when i finish things off and do a release