Hey,
someone reported a dupe bug using the Toolbox for the Bukkit port, it's also working with the vanilla version.
It works like this:
- Put a Toolbox in the first slot and fill the other slots with tools (or non-stackable items)
- Use the toolbox (you will drop out with an error)
- Use the toolbox again (same error occurs)
- Items are duped
I could fix it by setting the termination to 8 for the second for statement in ToolBox.unpack(..).
Error:
Code
[WARNING] Failed to handle packet: java.lang.ArrayIndexOutOfBoundsException: 8
java.lang.ArrayIndexOutOfBoundsException: 8
at ic2.common.ItemToolbox.unpack(ItemToolbox.java:151)
at ic2.common.ItemToolbox.a(ItemToolbox.java:81)
at jm.a(SourceFile:98)
at ug.a(ItemInWorldManager.java:200)
at lf.a(NetServerHandler.java:358)
at hl.a(SourceFile:39)
at pd.b(NetworkManager.java:234)
at lf.a(NetServerHandler.java:49)
at ew.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:446)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:346)
at cz.run(SourceFile:465)
Display More