mojira.dev
MC-273300

Horse armor and wolf armor swap from off-hand to main hand upon pressing the Use Item/Place Block key

After pressing the Use Item/Place Block key (right-click by default), the horse armor/wolf armor that is located in the off-hand swaps with the item with the main hand. Pressing the Use Item/Place Block key again does not swap the items back.

Steps to Reproduce

  1. Put horse armor/wolf armor in your off-hand

  2. Press the Use Item/Place Block key with any selected hotbar slot

Observed Behaviour

The horse armor/wolf armor that is located in the off-hand swaps with the item with the main hand.

Expected Behaviour

Nothing happens when pressing the Use Item/Place Block key with horse armor/wolf armor in the off-hand.

Linked issues

Attachments

Comments 2

It seems this issue has been fixed in snapshot 24w36a as part of the rewrite to equipment code. I can not recreate the issue in 24w36a and I looked at the code identified to be responsible in MC-274309 and it appears to be fixed.

MrKinau

(Unassigned)

1251593

Confirmed

Expansion A

Normal

Inventory, Items

1.21, 1.21.1, 24w33a

24w36a

Retrieved