Fix potential mutability issue with CraftMetaItem copy constructor
This commit is contained in:
parent
9958854527
commit
a7e576186d
@ -320,7 +320,7 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable, BlockDataMeta {
|
|||||||
}
|
}
|
||||||
this.damage = meta.damage;
|
this.damage = meta.damage;
|
||||||
this.maxDamage = meta.maxDamage;
|
this.maxDamage = meta.maxDamage;
|
||||||
this.unhandledTags = meta.unhandledTags;
|
this.unhandledTags.copy(meta.unhandledTags.build());
|
||||||
this.removedTags.addAll(meta.removedTags);
|
this.removedTags.addAll(meta.removedTags);
|
||||||
this.persistentDataContainer.putAll(meta.persistentDataContainer.getRaw());
|
this.persistentDataContainer.putAll(meta.persistentDataContainer.getRaw());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user