ItemMeta#addItemFlags(ItemFlag.HIDE_ATTRIBUTES) not working when no attribute modifiers set

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None
    • Environment:

      doesn't matter

    • 1.20.6
    • Yes

      In 1.20.4 meta.addItemFlags(ItemFlag.HIDE_ATTRIBUTES) worked perfectly for everything to hide the attributes (e.g. diamond chestplate), but in 1.20.6 this is no longer working.

      Additionally (like in SPIGOT-7654) the ItemStack#isSimilar will return false for items, that should be similar.

       

      Code: https://pastebin.com/VQjuwUGh

      Observed Behaviour: The diamond chestplate hat all it's attributes shown (e.g. + Armor)

      Expected Behaviour: The diamond chestplate should hide it's attributes (only item name visible, not the attributes)

            Assignee:
            Unassigned
            Reporter:
            David Lüdtke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: