The behaviour: shift clicking items from the inventory into the hotbar adds them from the left to the right, while shift clicking items from a chest adds them from the right to the left.
I've noticed this behaviour and problem as someone who plays a lot while invisible (through pot of invisibility).
Sometimes i'd want to put stuff in my hotbar from my inventory (eg: other potions) and sometimes i'd want to loot chests while others are nearby without blowing my cover, and to do that i always need to manage one free slot in my inventory, but because of this inconsistency no matter if i choose the first slot or the last slot in the hotbar to be my "empty slot" and set my hotkeys accordingly i won't be able to have a consistent result.
Linked issues
Comments 3
Thank you for your report!
We're tracking this issue in MC-131882, 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
Considering 1.20.4 is outdated and no longer supported, is this also an issue for you in 1.21?