MTVehicles / MinetopiaVehicles

A realistic vehicle plugin for your Minecraft server!
https://mtvehicles.nl
MIT License
92 stars 29 forks source link

Could not pass event InventoryClickEvent to MTVehicles #143

Closed robtbs closed 1 year ago

robtbs commented 1 year ago

⚠️ EDIT THIS TEMPLATE AND REMOVE THIS MESSAGE WHEN YOU'RE DONE ⚠️

About

Write a few sentences describing the bug you've found. Be as concise as possible.

When and why?

09.04 21:08:58 [Server] ERROR Could not pass event InventoryClickEvent to MTVehicles v2.5.0-pre1 09.04 21:08:58 [Server] INFO java.lang.NullPointerException: Cannot invoke "java.lang.Double.doubleValue()" because the return value of "java.util.Map.get(Object)" is null 09.04 21:08:58 [Server] INFO at nl.mtvehicles.core.listeners.inventory.InventoryClickListener.confirmVehicleMenu(InventoryClickListener.java:202) ~[MTVehicles-2.5.0-pre1.jar:?] 09.04 21:08:58 [Server] INFO at nl.mtvehicles.core.listeners.inventory.InventoryClickListener.onClick(InventoryClickListener.java:85) ~[MTVehicles-2.5.0-pre1.jar:?] 09.04 21:08:58 [Server] INFO at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor532.execute(Unknown Source) ~[?:?] 09.04 21:08:58 [Server] INFO at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?] 09.04 21:08:58 [Server] INFO at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:git-Paper-448] 09.04 21:08:58 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?] 09.04 21:08:58 [Server] INFO at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.19.3.jar:git-Paper-448] 09.04 21:08:58 [Server] INFO at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[paper-1.19.3.jar:git-Paper-448] 09.04 21:08:58 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?] 09.04 21:08:58 [Server] INFO at net.minecraft.server.network.ServerGamePacketListenerImpl.handleContainerClick(ServerGamePacketListenerImpl.java:3165) ~[?:?] 09.04 21:08:58 [Server] INFO at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:58) ~[?:?] 09.04 21:08:58 [Server] INFO at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:23) ~[?:?] 09.04 21:08:58 [Server] INFO at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:51) ~[?:?] 09.04 21:08:58 [Server] INFO at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.19.3.jar:git-Paper-448] 09.04 21:08:58 [Server] INFO at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?] 09.04 21:08:58 [Server] INFO at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?] 09.04 21:08:58 [Server] INFO at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1341) ~[paper-1.19.3.jar:git-Paper-448] 09.04 21:08:58 [Server] INFO at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) ~[paper-1.19.3.jar:git-Paper-448] 09.04 21:08:58 [Server] INFO at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?] 09.04 21:08:58 [Server] INFO at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1318) ~[paper-1.19.3.jar:git-Paper-448] 09.04 21:08:58 [Server] INFO at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1311) ~[paper-1.19.3.jar:git-Paper-448] 09.04 21:08:58 [Server] INFO at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?] 09.04 21:08:58 [Server] INFO at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1289) ~[paper-1.19.3.jar:git-Paper-448] 09.04 21:08:58 [Server] INFO at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1177) ~[paper-1.19.3.jar:git-Paper-448] 09.04 21:08:58 [Server] INFO at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[paper-1.19.3.jar:git-Paper-448] 09.04 21:08:58 [Server] INFO at java.lang.Thread.run(Thread.java:833) ~[?:?]

Zettovec commented 1 year ago

Duplicate of #136 (seems to be fixed)