Commits

DerFrZocker authored and md_5 committed 59733a2e9ce
SPIGOT-6961: Actually return a copy of the ItemMeta
No tags

src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaArmorStand.java

Modified
22 22 }
23 23
24 24 CraftMetaArmorStand armorStand = (CraftMetaArmorStand) meta;
25 25 this.entityTag = armorStand.entityTag;
26 26 }
27 27
28 28 CraftMetaArmorStand(NBTTagCompound tag) {
29 29 super(tag);
30 30
31 31 if (tag.contains(ENTITY_TAG.NBT)) {
32 - entityTag = tag.getCompound(ENTITY_TAG.NBT);
32 + entityTag = tag.getCompound(ENTITY_TAG.NBT).copy();
33 33 }
34 34 }
35 35
36 36 CraftMetaArmorStand(Map<String, Object> map) {
37 37 super(map);
38 38 }
39 39
40 40 @Override
41 41 void deserializeInternal(NBTTagCompound tag, Object context) {
42 42 super.deserializeInternal(tag, context);

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut