-
Bug
-
Resolution: Unresolved
-
None
-
Minecraft 15w32a, Minecraft 15w35b, Minecraft 15w45a, Minecraft 16w35a, Minecraft 1.11.2, Minecraft 1.12.1, Minecraft 1.13.1, 1.15.2, 1.16 Pre-release 5, 1.16 Pre-release 7, 1.16, 1.16.1, 1.16.2 Pre-release 1, 1.16.3, 1.16.5, 21w05b, 21w08b, 1.19, 1.20.1, 23w45a, 23w46a, 1.20.3 Pre-Release 1, 1.20.3 Pre-Release 2, 1.20.3 Release Candidate 1, 1.20.3, 1.20.4 Release Candidate 1, 1.20.4, 1.20.5, 1.20.6, 1.21
-
Confirmed
-
Inventory
-
Low
-
Platform
The bug
Shift-clicking an item which is not an offhand item (like a shield) will never move it to the offhand, even if no other slots are free or the offhand has already the same item.
How to reproduce
Option 1:
- Place a chestplate in the chest armor slot
- Fill your complete inventory except for the offhand slot with items
- Try to shift-click the chestplate into the offhand slot
→ It does not work
Option 2:
- Set your gamemode to survival
- Put some torches in your offhand slot
- Craft more torches and collect them using shift-click
→ Torches won't stack on the offhand slot but in the inventory
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The method net.minecraft.inventory.ContainerPlayer.transferStackInSlot(EntityPlayer, int) only tries to merge items with items in slots up to (excluding) index 45 which is offhand. Therefore the items cannot be moved into the offhand.
- is duplicated by
-
MC-87395 left hand item
- Resolved
-
MC-103318 Shift-clicking items does not automatically stack them into the offhand slot
- Resolved
-
MC-114793 Shift-clicking does not go into the offhand slot
- Resolved
-
MC-137055 If you hold item in your offhand (like torches) and it's not a full stack, shift clicking on more torches does not put them in your offhand
- Resolved
-
MC-191342 Items don't stack to second hand
- Resolved
-
MC-196855 Unable to uses shift-clicking to place totem of undying on offhand
- Resolved
-
MC-202747 Item whont be shift clicked into offhand
- Resolved
- relates to
-
MC-82824 Picking up items doesnt stack them into the offhand slot.
- Resolved