Connection Lost in Singleplayer after using the middle mouse button while facing a dirt block to pick it from inventory. Happened multiple times, with various blocks. The game is not open to LAN + no mods + no datapacks + enabled experiments: bundle, minecart changes. This happened multiple times in a row even after restarting the game.
What I expected to happen was...:
The block that was middle mouse clicked should have appeared in my hotbar.
What actually happened was...:
The game crashed with the following error:
Connection Lost Internal Exception: io.netty.handgler.codec.EncoderException: Failed to encode packet 'clientbound/minecraft:set_player_inventory'
Steps to Reproduce:
1. Face a block with some some of that block in your inventory, but not in your hotbar.
2. Middle mouse click the block.
3. Game crashes with Connection Lost error and the "Back to Server List" button.
4. Game shows the multiplayer screen instead of the singleplayer screen.
Thank you for your report!
We're tracking this issue in MC-275293, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.