Mtihc / TreasureChest

The TreasureChest plugin for CraftBukkit
dev.bukkit.org/server-mods/treasurechest
10 stars 39 forks source link

The Container.clickItem error... Bukkit issue #53

Open Mtihc opened 11 years ago

Mtihc commented 11 years ago

Best explenation yet, copied from comment by http://dev.bukkit.org/profiles/macman73/ on dev.bukkit.org

Hello there,

I seem to be having an issue with furnaces set as treasure chests.

Whenever a user shift clicks items in or out of a furnace the server crashes with

Description: Exception in server tick loop

java.lang.StackOverflowError at net.minecraft.server.v1_5_R2.ItemStack.(ItemStack.java:38) at net.minecraft.server.v1_5_R2.ItemStack.cloneItemStack(ItemStack.java:261) at net.minecraft.server.v1_5_R2.Container.clickItem(Container.java:214) at net.minecraft.server.v1_5_R2.Container.a(Container.java:383) at net.minecraft.server.v1_5_R2.Container.clickItem(Container.java:216) at net.minecraft.server.v1_5_R2.Container.a(Container.java:383) at net.minecraft.server.v1_5_R2.Container.clickItem(Container.java:216) at net.minecraft.server.v1_5_R2.Container.a(Container.java:383)

Seems fine with chests not tested other storage types. I remove the plugin and its fine.

Hope you can help

Great plugin by the way especially the features of permissions groups and being able to set commands on chest open.

Thanks

MACMAN

Mtihc commented 11 years ago

It is officially not my fault. https://bukkit.atlassian.net/browse/BUKKIT-1929

Vote for that issue!!!

Mtihc commented 10 years ago

For the record. We are using a workaround since 8.4.2. Workaround: Cancel the InventoryClickEvent, when shift-clicking inside a treasure container that is not a chest.