Forum rules: Do not post bugs or feature requests here! Report bugs to our Issue Tracker and suggestions to Suggest a Feature.

This site is not for solicitation of services or 'purchasing' development. Please do not post requesting side mods/plugins and so on. Your thread will be removed, and you will receive a warning.
By Destreza
#241055 Interacting with wild shopkeepers causes errors on console, spamming interaction will crash the server, attempting to delete the npc causes your client to crash.

9.2.6
48.1.0
Mohist latest version

Error caused by interacting with the shopkeeper.
Cannot be removed with the npc editor.


[23:28:54 ERROR]: Failed to handle packet net.minecraft.network.protocol.game.ServerboundInteractPacket@65ea838, suppressing error
java.lang.IndexOutOfBoundsException: Index: 0
at java.util.Collections$EmptyList.get(Collections.java:4586) ~[?:?]
at com.pixelmonmod.pixelmon.entities.npcs.registry.NPCRegistryShopkeepers.getTranslatedChat(NPCRegistryShopkeepers.java:261) ~[Pixelmon-1.20.2-9.2.6-server.jar%23156!/:9.2.6-pipe22672]
at com.pixelmonmod.pixelmon.entities.npcs.NPCShopkeeper.getShopkeeperChat(NPCShopkeeper.java:260) ~[Pixelmon-1.20.2-9.2.6-server.jar%23156!/:9.2.6-pipe22672]
at com.pixelmonmod.pixelmon.entities.npcs.NPCShopkeeper.sendItemsToPlayer(NPCShopkeeper.java:172) ~[Pixelmon-1.20.2-9.2.6-server.jar%23156!/:9.2.6-pipe22672]
at com.pixelmonmod.pixelmon.entities.npcs.NPCShopkeeper.interactWithNPC(NPCShopkeeper.java:153) ~[Pixelmon-1.20.2-9.2.6-server.jar%23156!/:9.2.6-pipe22672]
at com.pixelmonmod.pixelmon.entities.npcs.NPCEntity.m_7111_(NPCEntity.java:524) ~[Pixelmon-1.20.2-9.2.6-server.jar%23156!/:9.2.6-pipe22672]
at net.minecraft.server.network.ServerGamePacketListenerImpl$2.lambda$onInteraction$1(ServerGamePacketListenerImpl.java:2101) ~[server-1.20.2-20230921.100330-srg.jar%23158!/:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl$2.performInteraction(ServerGamePacketListenerImpl.java:2077) ~[server-1.20.2-20230921.100330-srg.jar%23158!/:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl$2.m_142143_(ServerGamePacketListenerImpl.java:2098) ~[server-1.20.2-20230921.100330-srg.jar%23158!/:?]
at net.minecraft.network.protocol.game.ServerboundInteractPacket$InteractionAtLocationAction.m_142457_(ServerboundInteractPacket.java:151) ~[server-1.20.2-20230921.100330-srg.jar%23158!/:?]
at net.minecraft.network.protocol.game.ServerboundInteractPacket.m_179617_(ServerboundInteractPacket.java:75) ~[server-1.20.2-20230921.100330-srg.jar%23158!/:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.m_6946_(ServerGamePacketListenerImpl.java:2040) ~[server-1.20.2-20230921.100330-srg.jar%23158!/:?]
at net.minecraft.network.protocol.game.ServerboundInteractPacket.m_5797_(ServerboundInteractPacket.java:62) ~[server-1.20.2-20230921.100330-srg.jar%23158!/:?]
at net.minecraft.network.protocol.game.ServerboundInteractPacket.m_5797_(ServerboundInteractPacket.java:12) ~[server-1.20.2-20230921.100330-srg.jar%23158!/:?]
at net.minecraft.network.protocol.PacketUtils.m_292130_(PacketUtils.java:23) ~[server-1.20.2-20230921.100330-srg.jar%23158!/:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[server-1.20.2-20230921.100330-srg.jar%23158!/:?]
at net.minecraft.util.thread.BlockableEventLoop.m_6367_(BlockableEventLoop.java:156) ~[server-1.20.2-20230921.100330-srg.jar%23158!/:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(ReentrantBlockableEventLoop.java:23) ~[server-1.20.2-20230921.100330-srg.jar%23158!/:?]
at net.minecraft.server.MinecraftServer.m_6367_(MinecraftServer.java:1028) ~[server-1.20.2-20230921.100330-srg.jar%23158!/:?]
at net.minecraft.server.MinecraftServer.m_6367_(MinecraftServer.java:169) ~[server-1.20.2-20230921.100330-srg.jar%23158!/:?]
at net.minecraft.util.thread.BlockableEventLoop.m_7245_(BlockableEventLoop.java:130) ~[server-1.20.2-20230921.100330-srg.jar%23158!/:?]
at net.minecraft.server.MinecraftServer.m_129961_(MinecraftServer.java:1011) ~[server-1.20.2-20230921.100330-srg.jar%23158!/:?]
at net.minecraft.server.MinecraftServer.m_7245_(MinecraftServer.java:1005) ~[server-1.20.2-20230921.100330-srg.jar%23158!/:?]
at net.minecraft.util.thread.BlockableEventLoop.m_18699_(BlockableEventLoop.java:115) ~[server-1.20.2-20230921.100330-srg.jar%23158!/:?]
at net.minecraft.server.MinecraftServer.m_130012_(MinecraftServer.java:990) ~[server-1.20.2-20230921.100330-srg.jar%23158!/:?]
at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:907) ~[server-1.20.2-20230921.100330-srg.jar%23158!/:?]
at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:276) ~[server-1.20.2-20230921.100330-srg.jar%23158!/:?]
at java.lang.Thread.run(Thread.java:840) [?:?]

JOIN THE TEAM