mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-05 16:49:30 +00:00
Fix potential mutability issue with CraftMetaItem copy constructor
This commit is contained in:
parent
9958854527
commit
a7e576186d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue