Oh sorry, there's another post with the same problem. RichardG says a hotfix is on the way. For some reason that post didn't come up when I did a google search for it. My Compressor is also sitting next to two pumps, as is mentioned in the post. Though only one Pump is touching the Compressor: Pump -> Pump -> Compressor.
Posts by josiah42
-
-
It looks like the new API breaks on the special case of Compressors placed next to an infinite water source producing snowballs. I get this error:
Code
Display Morejava.lang.NullPointerException at jm.a(SourceFile:274) at ic2.api.Ic2Recipes.getOutputFor(Ic2Recipes.java:151) at ic2.api.Ic2Recipes.getCompressorOutputFor(Ic2Recipes.java:83) at ic2.common.TileEntityCompressor.getResultFor(TileEntityCompressor.java:61) at ic2.common.TileEntityCompressor.operate(TileEntityCompressor.java:84) at ic2.common.TileEntityElectricMachine.l_(TileEntityElectricMachine.java:105) at fq.f(World.java:1204) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:441) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:346) at cz.run(SourceFile:465)2012-01-26 22:38:40 [SEVERE] Unexpected exceptionjava.lang.NullPointerException at jm.a(SourceFile:274) at ic2.api.Ic2Recipes.getOutputFor(Ic2Recipes.java:151) at ic2.api.Ic2Recipes.getCompressorOutputFor(Ic2Recipes.java:83) at ic2.common.TileEntityCompressor.getResultFor(TileEntityCompressor.java:61) at ic2.common.TileEntityCompressor.operate(TileEntityCompressor.java:84) at ic2.common.TileEntityElectricMachine.l_(TileEntityElectricMachine.java:105) at fq.f(World.java:1204) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:441) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:346) at cz.run(SourceFile:465)
The error originates from the first 'if' statement in this piece of code:
Codeprivate static ItemStack getOutputFor(ItemStack input, boolean adjustInput, List<Map.Entry<ItemStack, ItemStack> > recipeList) { for (Map.Entry<ItemStack, ItemStack> entry: recipeList) { if (entry.getKey().isItemEqual(input) && input.stackSize >= entry.getKey().stackSize) { if (adjustInput) input.stackSize -= entry.getKey().stackSize; return entry.getValue().copy(); } } return null; }
It may also be worth noting bcIntegration isn't loading, though I don't run BC.
Mod Loaded: mod_IC2 v1.64
[IC2] Trying to load IC2 submodule: bcIntegration31x
[IC2] Can't load submodule: java.lang.reflect.InvocationTargetException
[IC2] Trying to load IC2 submodule: bcIntegration22x
[IC2] Can't load submodule: java.lang.reflect.InvocationTargetExceptionIf I had to guess I'd say the entry in the input stack is null because the pump doesn't just produce water blocks.
Right now my server is hard crashing because the Compressor keeps throwing this error before I can even get to it. I'll either need to fix the code myself or MCedit out the Compressor. A hotfix would be appreciated.