When the player's inventory is full and the player middle clicks to pick a block that isn't in their inventory yet, the item they were holding gets placed in their first free armor slot (in the order of boots, leggins, chestplate, helmet).
To Reproduce
Steps to reproduce the behavior:
Fill every slot in your inventory with at least one item:
Middle click while looking at a block that isn't in your inventory:
The block you were holding will be placed in the first empty armor slot:
This works with any item.
Expected behavior
I expect the block to maybe be placed in the head slot, if it can be placed there, otherwise I don't expect items to be put in armor slots at all.
Describe the bug
When the player's inventory is full and the player middle clicks to pick a block that isn't in their inventory yet, the item they were holding gets placed in their first free armor slot (in the order of boots, leggins, chestplate, helmet).
To Reproduce
Steps to reproduce the behavior:
This works with any item.
Expected behavior I expect the block to maybe be placed in the head slot, if it can be placed there, otherwise I don't expect items to be put in armor slots at all.
Version info: