
[Bug]: Server packet issues
Closed this issue ยท 1 comments
Describe the bug
On a server right clicking with a shrinking device will cause a packet error and the UI of the device to not display stored enegery
Steps to reproduce
- Get a shrinking device
- Right click with it to open UI
- See packet error in server console
Expected behaviour
The shrinking device to display the UI correctly and not run into a packet handeling error
Screenshots
No response
Version
2.0.0.44
Minecraft Version
1.21.1
ModLoader Version
21.1.128
Additional Information
Error from the server log:
[25Mar2025 09:05:19.348] [Server thread/ERROR] [net.minecraft.network.protocol.game.ServerPacketListener/]: Failed to handle packet net.minecraft.network.protocol.game.ServerboundUseItemPacket@52708dc8, suppressing error
java.lang.NullPointerException: Cannot invoke "net.minecraft.network.protocol.common.custom.CustomPacketPayload$Type.id()" because "type" is null
at TRANSFORMER/[email protected]/dev.architectury.impl.NetworkAggregator.collectPackets(NetworkAggregator.java:143) ~[architectury-13.0.8-neoforge.jar%23126!/:?]
at TRANSFORMER/[email protected]/dev.architectury.impl.NetworkAggregator.collectPackets(NetworkAggregator.java:137) ~[architectury-13.0.8-neoforge.jar%23126!/:?]
at TRANSFORMER/[email protected]/dev.architectury.networking.NetworkManager.collectPackets(NetworkManager.java:133) ~[architectury-13.0.8-neoforge.jar%23126!/:?]
at TRANSFORMER/[email protected]/dev.architectury.networking.NetworkManager.sendToPlayer(NetworkManager.java:142) ~[architectury-13.0.8-neoforge.jar%23126!/:?]
at TRANSFORMER/[email protected]/net.creeperhost.polylib.network.PolyLibNetwork.sendContainerPacketToClient(PolyLibNetwork.java:95) ~[polylib-2100.0.3-build.160-neoforge.jar%23129!/:2100.0.3-build.160]
at TRANSFORMER/[email protected]/net.creeperhost.polylib.containers.ModularGuiContainerMenu.sendPacketToClient(ModularGuiContainerMenu.java:111) ~[polylib-2100.0.3-build.160-neoforge.jar%23129!/:2100.0.3-build.160]
at TRANSFORMER/[email protected]/net.creeperhost.polylib.client.modulargui.lib.container.DataSync.detectAndSend(DataSync.java:41) ~[polylib-2100.0.3-build.160-neoforge.jar%23129!/:2100.0.3-build.160]
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ~[?:?]
at TRANSFORMER/[email protected]/net.creeperhost.polylib.containers.ModularGuiContainerMenu.broadcastChanges(ModularGuiContainerMenu.java:324) ~[polylib-2100.0.3-build.160-neoforge.jar%23129!/:2100.0.3-build.160]
at TRANSFORMER/[email protected]/net.minecraft.world.inventory.AbstractContainerMenu.addSlotListener(AbstractContainerMenu.java:125) ~[server-1.21.1-20240808.144430-srg.jar%23124!/:?]
at TRANSFORMER/[email protected]/net.minecraft.server.level.ServerPlayer.initMenu(ServerPlayer.java:464) ~[server-1.21.1-20240808.144430-srg.jar%23124!/:?]
at TRANSFORMER/[email protected]/net.minecraft.server.level.ServerPlayer.openMenu(ServerPlayer.java:1145) ~[server-1.21.1-20240808.144430-srg.jar%23124!/:?]
at TRANSFORMER/[email protected]/dev.architectury.registry.menu.forge.MenuRegistryImpl.openExtendedMenu(MenuRegistryImpl.java:43) ~[architectury-13.0.8-neoforge.jar%23126!/:?]
at TRANSFORMER/[email protected]/dev.architectury.registry.menu.MenuRegistry.openExtendedMenu(MenuRegistry.java) ~[architectury-13.0.8-neoforge.jar%23126!/:?]
at TRANSFORMER/[email protected]/dev.architectury.registry.menu.MenuRegistry.openExtendedMenu(MenuRegistry.java:54) ~[architectury-13.0.8-neoforge.jar%23126!/:?]
at TRANSFORMER/[email protected]/net.gigabit101.shrink.items.ItemShrinkDevice.use(ItemShrinkDevice.java:89) ~[shrink-2.0.0.44-neoforge.jar%23130!/:?]
at TRANSFORMER/[email protected]/net.minecraft.world.item.ItemStack.use(ItemStack.java:391) ~[server-1.21.1-20240808.144430-srg.jar%23124!/:?]
at TRANSFORMER/[email protected]/net.minecraft.server.level.ServerPlayerGameMode.useItem(ServerPlayerGameMode.java:313) ~[server-1.21.1-20240808.144430-srg.jar%23124!/:?]
at TRANSFORMER/[email protected]/net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItem(ServerGamePacketListenerImpl.java:1172) ~[server-1.21.1-20240808.144430-srg.jar%23124!/:?]
at TRANSFORMER/[email protected]/net.minecraft.network.protocol.game.ServerboundUseItemPacket.handle(ServerboundUseItemPacket.java:45) ~[server-1.21.1-20240808.144430-srg.jar%23124!/:?]
at TRANSFORMER/[email protected]/net.minecraft.network.protocol.game.ServerboundUseItemPacket.handle(ServerboundUseItemPacket.java:9) ~[server-1.21.1-20240808.144430-srg.jar%23124!/:?]
at TRANSFORMER/[email protected]/net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:27) ~[server-1.21.1-20240808.144430-srg.jar%23124!/:?]
at TRANSFORMER/[email protected]/net.minecraft.server.TickTask.run(TickTask.java:18) ~[server-1.21.1-20240808.144430-srg.jar%23124!/:?]
at TRANSFORMER/[email protected]/net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:148) ~[server-1.21.1-20240808.144430-srg.jar%23124!/:?]
at TRANSFORMER/[email protected]/net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:23) ~[server-1.21.1-20240808.144430-srg.jar%23124!/:?]
at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:872) ~[server-1.21.1-20240808.144430-srg.jar%23124!/:?]
at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:170) ~[server-1.21.1-20240808.144430-srg.jar%23124!/:?]
at TRANSFORMER/[email protected]/net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:122) ~[server-1.21.1-20240808.144430-srg.jar%23124!/:?]
at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:855) ~[server-1.21.1-20240808.144430-srg.jar%23124!/:?]
at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:849) ~[server-1.21.1-20240808.144430-srg.jar%23124!/:?]
at TRANSFORMER/[email protected]/net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:111) ~[server-1.21.1-20240808.144430-srg.jar%23124!/:?]
at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:825) ~[server-1.21.1-20240808.144430-srg.jar%23124!/:?]
at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:712) ~[server-1.21.1-20240808.144430-srg.jar%23124!/:?]
at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:267) ~[server-1.21.1-20240808.144430-srg.jar%23124!/:?]
at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]
Original issue FTBTeam/FTB-Modpack-Issues#7448