View Issue Details

IDProjectCategoryView StatusLast Update
0000982Industrial-Craft²crossmod-compatibility / submodules / APIpublic2014-03-13 14:07
ReporterLinusPhoenix Assigned ToPlayer  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionwon't fix 
Summary0000982: NetworkHelper.updateTileEntityField crashes
DescriptionI have a class BaseIC2Generator that extends TileEntity which uses updateTileEntityField for its workstate (on/off) and facing. When calling this method, I get a crash.

It worked exactly like this before the 1.7.2 update. Did you remove this method with announceBlockUpdate? Because then I'd have to solve it with packets myself.

Additional InformationCrash:

java.lang.RuntimeException: java.lang.IllegalArgumentException: object is not an instance of declaring class
    at ic2.api.network.NetworkHelper.updateTileEntityField(NetworkHelper.java:63)
    at phnxflms.unidye.common.tileentities.BaseIC2Generator.setWorking(BaseIC2Generator.java:49)
    at phnxflms.unidye.common.tileentities.TileEntityChromaticGenerator.updateEntity(TileEntityChromaticGenerator.java:85)
    at net.minecraft.world.World.updateEntities(World.java:1968)
    at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:512)
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:658)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:569)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:114)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:454)
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:706)
Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at ic2.api.network.NetworkHelper.updateTileEntityField(NetworkHelper.java:61)
    ... 9 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
    at ic2.api.network.NetworkHelper.updateTileEntityField(NetworkHelper.java:63)
    at phnxflms.unidye.common.tileentities.BaseIC2Generator.setWorking(BaseIC2Generator.java:49)
    at phnxflms.unidye.common.tileentities.TileEntityChromaticGenerator.updateEntity(TileEntityChromaticGenerator.java:85)

-- Block entity being ticked --
Details:
    Name: containerChromaticGenerator // phnxflms.unidye.common.tileentities.TileEntityChromaticGenerator
    Block type: ID 0000211 (tile.blockMachine // phnxflms.unidye.common.blocks.BlockMachine)
    Block data value: 3 / 0x3 / 0b0011
    Block location: World: (-2105,4,-655), Chunk: (at 7,0,1 in -132,-41; contains blocks -2112,0,-656 to -2097,255,-641), Region: (-5,-2; contains chunks -160,-64 to -129,-33, blocks -2560,0,-1024 to -2049,255,-513)
    Actual block type: ID 0000211 (tile.blockMachine // phnxflms.unidye.common.blocks.BlockMachine)
    Actual block data value: 3 / 0x3 / 0b0011
Stacktrace:
    at net.minecraft.world.World.updateEntities(World.java:1968)
    at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:512)
TagsNo tags attached.
Minecraft Version

Activities

Player

2014-03-13 14:07

administrator   ~0002237

I've removed it, yes.

Vanilla provides something similar with World.markBlockForUpdate.

Issue History

Date Modified Username Field Change
2014-03-12 10:59 LinusPhoenix New Issue
2014-03-13 14:07 Player Note Added: 0002237
2014-03-13 14:07 Player Status new => closed
2014-03-13 14:07 Player Assigned To => Player
2014-03-13 14:07 Player Resolution open => won't fix