⚠️[Error] Can't open "Active advancements" GUI
Opened this issue · 1 comments
User4716 commented
When I am in this GUI and I press the enchanted book
It doesn't open any GUI but instead it just throws an error in the console:
[16:55:04 ERROR]: Could not pass event InventoryClickEvent to CustomAdvancements v1.2.9
java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 27
at java.util.Arrays$ArrayList.set(Arrays.java:4170) ~[?:?]
at net.minecraft.core.NonNullList.set(NonNullList.java:50) ~[paper-1.20.1.jar:git-Paper-32]
at org.bukkit.craftbukkit.v1_20_R1.inventory.CraftInventoryCustom$MinecraftInventory.a(CraftInventoryCustom.java:167) ~[paper-1.20.1.jar:git-Paper-32]
at org.bukkit.craftbukkit.v1_20_R1.inventory.CraftInventory.setItem(CraftInventory.java:99) ~[paper-1.20.1.jar:git-Paper-32]
at me.tippie.customadvancements.guis.ActiveAdvancementsGUI.getInventory(ActiveAdvancementsGUI.java:45) ~[CustomAdvancements-1.2.9.jar:?]
at me.tippie.customadvancements.guis.InventoryGUI.getInventory(InventoryGUI.java:38) ~[CustomAdvancements-1.2.9.jar:?]
at me.tippie.customadvancements.guis.MainGUI.onClick(MainGUI.java:50) ~[CustomAdvancements-1.2.9.jar:?]
at me.tippie.customadvancements.guis.InventoryGUI.onInventoryClick(InventoryGUI.java:106) ~[CustomAdvancements-1.2.9.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor39.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:git-Paper-32]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.20.1.jar:git-Paper-32]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[paper-1.20.1.jar:git-Paper-32]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleContainerClick(ServerGamePacketListenerImpl.java:3197) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:58) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:23) ~[?:?]
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:51) ~[?:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.20.1.jar:git-Paper-32]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1339) ~[paper-1.20.1.jar:git-Paper-32]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) ~[paper-1.20.1.jar:git-Paper-32]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1316) ~[paper-1.20.1.jar:git-Paper-32]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1309) ~[paper-1.20.1.jar:git-Paper-32]
at net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:114) ~[?:?]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1425) ~[paper-1.20.1.jar:git-Paper-32]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1171) ~[paper-1.20.1.jar:git-Paper-32]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:318) ~[paper-1.20.1.jar:git-Paper-32]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
[16:55:05 ERROR]: Could not pass event InventoryClickEvent to CustomAdvancements v1.2.9
java.lang.ArrayIndexOutOfBoundsException: null
[16:55:06 ERROR]: Could not pass event InventoryClickEvent to CustomAdvancements v1.2.9
java.lang.ArrayIndexOutOfBoundsException: null
That's basically it, and I have no idea why this error even happens, Maybe you forgot to update something to 1.20 and now it doesn't work anymore?
User4716 commented
This does not always happen, just randomly and I don't really care about this, but I guess you could fix this after you are done fixing more important things