opd02 / EnchantmentDisabler

A plugin to selectively disable vanilla minecraft enchantments - GUI based
0 stars 0 forks source link

Error InventoryClickEvent #1

Closed DeltaX86 closed 2 years ago

DeltaX86 commented 2 years ago

Hello, I have this error, perhaps airplane compatibility ?

[17:41:28 ERROR]: Could not pass event InventoryClickEvent to EnchantmentDisabler v0.1.1 java.lang.NullPointerException: Cannot invoke "org.bukkit.inventory.Inventory.getType()" because the return value of "org.bukkit.event.inventory.InventoryClickEvent.getClickedInventory()" is null at me.opd02.ed.listeners.ItemClickListener.onPlayerClickItem(ItemClickListener.java:68) ~[EnchantmentDisabler-0.1.1-BETA.jar:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor159.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.17.1.jar:git-Airplane-"74774a0"] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76) ~[patched_1.17.1.jar:git-Airplane-"74774a0"] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.17.1.jar:git-Airplane-"74774a0"] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[patched_1.17.1.jar:git-Airplane-"74774a0"] at net.minecraft.server.network.ServerGamePacketListenerImpl.handleContainerClick(ServerGamePacketListenerImpl.java:2807) ~[app:?] at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:55) ~[app:?] at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:11) ~[app:?] at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:56) ~[app:?] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[patched_1.17.1.jar:git-Airplane-"74774a0"] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:149) ~[app:?] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:23) ~[app:?] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1426) ~[patched_1.17.1.jar:git-Airplane-"74774a0"] at net.minecraft.server.MinecraftServer.executeTask(MinecraftServer.java:192) ~[patched_1.17.1.jar:git-Airplane-"74774a0"] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:122) ~[app:?] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1404) ~[patched_1.17.1.jar:git-Airplane-"74774a0"] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1397) ~[patched_1.17.1.jar:git-Airplane-"74774a0"] at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:132) ~[app:?] at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1375) ~[patched_1.17.1.jar:git-Airplane-"74774a0"] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1286) ~[patched_1.17.1.jar:git-Airplane-"74774a0"] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Airplane-"74774a0"] at java.lang.Thread.run(Thread.java:831) ~[?:?]

opd02 commented 2 years ago

Hello!

Sorry for the late response. One of the discord members had brought this to my attention and I believe I just patched it. The code should be updated but I still need to update the spigot plugin. Download it later today and it should be all set. Please let me know if this works or not as I am not home to test it.

Thanks, Owen