mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
parent
71de67180a
commit
8a5f5f023a
1 changed files with 3 additions and 1 deletions
|
@ -288,12 +288,14 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
this.displayName = component;
|
||||
});
|
||||
@@ -0,0 +0,0 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable, BlockDataMeta {
|
||||
}
|
||||
|
||||
void applyModifiers(Multimap<Attribute, AttributeModifier> modifiers, CraftMetaItem.Applicator tag) {
|
||||
if (modifiers == null || modifiers.isEmpty()) {
|
||||
- if (modifiers == null || modifiers.isEmpty()) {
|
||||
- if (this.hasItemFlag(ItemFlag.HIDE_ATTRIBUTES)) {
|
||||
- tag.put(CraftMetaItem.ATTRIBUTES, new ItemAttributeModifiers(Collections.emptyList(), false));
|
||||
- }
|
||||
+ if (modifiers == null/* || modifiers.isEmpty()*/) { // Paper - empty modifiers has a specific meaning, they should still be saved
|
||||
+ // Paper - don't save ItemFlag if the underlying data isn't present
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue