Right clicking the ground or a block OR right clicking when holding a book of souls throws an error
Chaoswizard98 opened this issue ยท 0 comments
Using NBT 3.3 on a Spigot 1.16.5 server throws this error when I right click a block or whenever I'm holding and opening a book of souls. I'm still able to edit and use the book of souls, but the console is spammed with this error whenever I right click.
Edit: Looks like the error only starts popping up after using the /reload command.
[01:47:45] [Server thread/ERROR]: Could not pass event PlayerInteractEvent to NBTEditor v3.3-SNAPSHOT
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
org.bukkit.event.EventException: null
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:589) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at org.bukkit.craftbukkit.v1_16_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:494) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:576) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.PlayerInteractManager.a(PlayerInteractManager.java:479) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.PacketPlayInUseItem.a(PacketPlayInUseItem.java:32) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.PlayerConnection.a(PlayerConnection.java:1504) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:28) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.PacketPlayInUseItem.a(PacketPlayInUseItem.java:1) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(SourceFile:144) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(SourceFile:118) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1054) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1061) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.MinecraftServer.sleepForTick(MinecraftServer.java:1038) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.awaitTasks(SourceFile:127) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$0(MinecraftServer.java:273) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:970) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
Caused by: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at java.lang.Thread.run(Thread.java:834) [?:?]
at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) ~[?:?]
at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[?:?]
at java.util.Objects.checkIndex(Objects.java:372) ~[?:?]
at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) ~[?:?]
at java.util.Collections$UnmodifiableList.get(Collections.java:1310) ~[?:?]
at java.util.ArrayList.get(ArrayList.java:459) ~[?:?]
at com.goncalomb.bukkit.customitems.api.CustomItemListener.playerInteract(CustomItemListener.java:82) ~[?:?]
at com.goncalomb.bukkit.mylib.utils.Utils.checkOnceThisTick(Utils.java:127) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at jdk.internal.reflect.GeneratedMethodAccessor863.invoke(Unknown Source) ~[?:?]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
... 20 more
org.bukkit.event.EventException: null
[01:47:45] [Server thread/ERROR]: Could not pass event PlayerInteractEvent to NBTEditor v3.3-SNAPSHOT
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:576) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:589) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.PlayerInteractManager.a(PlayerInteractManager.java:479) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at org.bukkit.craftbukkit.v1_16_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:494) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.PacketPlayInUseItem.a(PacketPlayInUseItem.java:32) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.PlayerConnection.a(PlayerConnection.java:1504) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:28) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.PacketPlayInUseItem.a(PacketPlayInUseItem.java:1) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(SourceFile:144) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(SourceFile:118) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1061) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.MinecraftServer.sleepForTick(MinecraftServer.java:1038) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1054) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.awaitTasks(SourceFile:127) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$0(MinecraftServer.java:273) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:970) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at java.lang.Thread.run(Thread.java:834) [?:?]
at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) ~[?:?]
Caused by: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[?:?]
at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) ~[?:?]
at java.util.Objects.checkIndex(Objects.java:372) ~[?:?]
at java.util.ArrayList.get(ArrayList.java:459) ~[?:?]
at java.util.Collections$UnmodifiableList.get(Collections.java:1310) ~[?:?]
at com.goncalomb.bukkit.customitems.api.CustomItemListener.playerInteract(CustomItemListener.java:82) ~[?:?]
at jdk.internal.reflect.GeneratedMethodAccessor863.invoke(Unknown Source) ~[?:?]
... 20 more
at com.goncalomb.bukkit.mylib.utils.Utils.checkOnceThisTick(Utils.java:127) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[custom18.jar:3096-Spigot-9fb885e-296df56]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]