Iron Tanks

Iron Tanks

663k Downloads

Liquids in tanks not saved

Indemnity83 opened this issue ยท 0 comments

commented

If you leave a world with liquid in a tank, when you restart the world (do not have to restart game) the liquid is gone. It appears the tile entity data is not being saved with the world save.

I believe this is directly related to an error with the TileIronTank class which results in an a method not found exception complaining about an InstantiationException when the world is reloaded:

java.lang.InstantiationException: com.indemnity83.irontank.block.TileIronTank
    at java.lang.Class.newInstance(Unknown Source)
    at net.minecraft.tileentity.TileEntity.createAndLoadEntity(TileEntity.java:123)
    at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadEntities(AnvilChunkLoader.java:525)
    at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:41)
    at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:12)
    at net.minecraftforge.common.util.AsynchronousExecutor.skipQueue(AsynchronousExecutor.java:344)
    at net.minecraftforge.common.util.AsynchronousExecutor.getSkipQueue(AsynchronousExecutor.java:302)
    at net.minecraftforge.common.chunkio.ChunkIOExecutor.syncChunkLoad(ChunkIOExecutor.java:12)
    at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:144)
    at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:119)
    at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:305)
    at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:79)
    at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)
Caused by: java.lang.NoSuchMethodException: com.indemnity83.irontank.block.TileIronTank.<init>()
    at java.lang.Class.getConstructor0(Unknown Source)
    ... 15 more