google-code-export / craftingtableiii

Automatically exported from code.google.com/p/craftingtableiii
0 stars 0 forks source link

Sometimes throws exception with Convienent Inventory #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
With the crafting table UI open, press escape, this will sometimes happen if 
the cursor is not over the GUI, but over the world (in the background).

Looking through the source of CI, it is sending -999 through the code, it would 
be nice if you were to handle it gracefully as you're more responsive to bug 
reports :)

java.lang.ArrayIndexOutOfBoundsException: -999
    at java.util.ArrayList.elementData(Unknown Source)
    at java.util.ArrayList.get(Unknown Source)
    at lukeperkin.craftingtableii.ContainerClevercraft.a(ContainerClevercraft.java:261)
    at lukeperkin.craftingtableii.ContainerClevercraft.a(ContainerClevercraft.java:334)
    at ki.a(PlayerController.java:139)
    at rk.a(PlayerControllerMP.java:352)
    at ConvenientInventory.sendClick(ConvenientInventory.java:889)
    at ConvenientInventory.mod_convenientInventory_handleClickOnSlot(ConvenientInventory.java:314)
    at gb.a(GuiContainer.java:288)
    at vp.f(SourceFile:122)
    at lukeperkin.craftingtableii.GuiClevercraft.f(GuiClevercraft.java:165)
    at vp.i(SourceFile:110)
    at net.minecraft.client.Minecraft.k(Minecraft.java:1561)
    at net.minecraft.client.Minecraft.x(Minecraft.java:819)
    at net.minecraft.client.Minecraft.run(Minecraft.java:747)
    at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 1246ac28 ----------

Original issue reported on code.google.com by ghollenb...@gmail.com on 19 May 2012 at 10:45

GoogleCodeExporter commented 9 years ago
This is a bug on CI's part, -999 slot clicks should be ignored. I will look 
into CI's source and see if I can come up with a solution

Original comment by brutalvi...@gmail.com on 21 May 2012 at 1:35