mojira.dev
MC-300820

Attribute modifier is inappropriately removed if an item that provides it is im both hands

How to reproduce it

  1. Give yourself 2 items with an attribute modifier. Make sure that they share the same id, and are applied when the item is in any slot.

  2. Place one of them in the main hand, and the other in the off hand.

  3. Remove only one of them from one of the hands.

Expected result:

  • Since the player still have an item with attribute modifier, the modifier should still exist.

Actual result:

  • The game notices that one attribute modifier with that id was removed, so it removes the modifier, ignoring the presence of the item in the other hand.

Linked issues

Comments 1

This is already being tracked in MC-272769

Fernando Rezende

(Unassigned)

Unconfirmed

(Unassigned)

1.21.8, 25w32a

Retrieved