[BUG] clicking an equippable item in the hotbar has the player kicked for 230 bytes extra whilst reading packet 13
Prerequisites
- [X] I made sure I am running the latest development build
- [X] I tried to look for similar issues before opening a new one
- [X] I have set
debugmessages=truein config to diagnose my issue - [X] I have redacted session tokens and passwords before attaching screenshots
Minecraft Version
1.20.2
Console Client Version
260
Expected Behavior
/inventory 0 click 37 RightClick with an armor in the 2nd hotbar slot and an empty armor slot should equip the armor.
Actual Behavior
/inventory 0 click 37 RightClick with an armor in the 2nd hotbar slot and an empty armor slot gets the player kicked for sending a bad (oversized) packet.
Left clicking a sword actually causes the same error, but it's 265 bytes extra instead of 230.
Clicking an empty slot actually does no harm.
Steps to Reproduce the bug
- Connect to a server (survival mode).
- Have an armor or a sword in the hotbar.
- In case of the armor have an empty armor slot.
- Right click the armor or left click the sword via
/inventory 0 click <slotnumber> <RightClick|LeftClick> - Get kicked.
Attach screenshot here (If applicable)
No response
Anythings that could help diagnosing the bug
[...] [MCC] Inventory #0 - Player Inventory
╔═════════════════════════════════════╗
║╔═══╦═══════════╗ ║
║║ 5 ║ ███ ║ ╔═══╦═══╗ ║
║╠═══╣ ███ ║ ║ 1 ║ 2 ║ ╔═══╗║
║║ 6 ║ ███████ ║ ╠═══╬═══╣━━▶║ 0 ║║
║╠═══╣ ███████ ║ ║ 3 ║ 4 ║ ╚═══╝║
║║ 7 ║ ███████ ║ ╚═══╩═══╝ ║
║╠═══╣ ███ ╠═══╗ ║
║║ 8 ║ ███ ║45 ║ ║
║╚═══╩═══════════╩═══╝ ║
║╔═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╗║
║║ 9 ║10 ║11 ║12 ║13 ║14 ║15 ║16 ║17 ║║
║╠═══╬═══╬═══╬═══╬═══╬═══╬═══╬═══╬═══╣║
║║18 ║19 ║20 ║21 ║22 ║23 ║24 ║25 ║26 ║║
║╠═══╬═══╬═══╬═══╬═══╬═══╬═══╬═══╬═══╣║
║║27 ║28 ║29 ║30 ║31 ║32 ║33 ║34 ║35 ║║
║╚═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╝║
║╔═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╗║
║║36 ║37 ║38 ║39 ║40 ║41 ║42 ║43 ║44 ║║
║╚═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╝║
║ 1 2 3 4 5 6 7 8 9 ║
╚═════════════════════════════════════╝
>1 | #36: x1 Diamond Sword - Raid Slayed | Sweeping Edge III | Sharpness V | Looting III | Mending I | Unbreaking III
2 | #37: x1 Diamond Chestplate - Raid Plate | Thorns III | Protection IV | Unbreaking III | Mending I
Your selected hotbar is 1
[...] [MCC] Left clicking slot 37 in window #0
[...] [MCC] Done
[...] [MCC] Disconnected by Server :
[...] [MCC] Internal Exception: io.netty.handler.codec.DecoderException: java.io.IOException: Packet play/13 (class_2813) was larger than I expected, found 230 bytes extra whilst reading packet 13
[...] [MCC] Internal Exception: io.netty.handler.codec.DecoderException: java.io.IOException: Packet play/13 (class_2813) was larger than I expected, found 265 bytes extra whilst reading packet 13
### Device
Desktop
### Operating System
Linux
### Server Address (If applicable)
private network, same machine
I have the same question,when i open the inventory list ,I notice that the name of the item is not same as the real game,and when i try to use the inventory to choose the server menu to choose a game, I was kicked by the server.
When using the menu, if you are kicked out of the server for the click solt command, you can try using drop as a replacement, which will not result in you being kicked out of the server.