[SPIGOT-7655] ItemMeta#addItemFlags(ItemFlag.HIDE_ATTRIBUTES) not working when no attribute modifiers set Created: 02/May/24  Updated: 25/Dec/24  Resolved: 02/May/24

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: David Lüdtke Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Environment:

doesn't matter


Version: 1.20.6
Guidelines Read: Yes

 Description   

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)


Generated at Sat Dec 13 22:24:54 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.