mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 22:43:14 +01:00
SPIGOT-7909: Always set HIDE_ENCHANTS flag to item if flag is set
By: md_5 <git@md-5.net>
This commit is contained in:
parent
bad69bdc04
commit
54c12bdb6e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue