SPIGOT-7909: Always set HIDE_ENCHANTS flag to item if flag is set
This commit is contained in:
parent
9634597914
commit
45b66f7e4c
@ -903,7 +903,7 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable, BlockDataMeta {
|
||||
}
|
||||
|
||||
void applyEnchantments(Map<Enchantment, Integer> enchantments, CraftMetaItem.Applicator tag, ItemMetaKeyType<ItemEnchantments> key, ItemFlag itemFlag) {
|
||||
if (enchantments == null) {
|
||||
if (enchantments == null && !hasItemFlag(itemFlag)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user