13
0
geforkt von Mirrors/Paper

Force item data to use a tag name. Fixes BUKKIT-4809

The recent Minecraft update rendered the
e20e50f85083dc53cb5456254bcf5781ef750daa fix incorrect by adding a
compound name to the base tag in some code. This fix changes all uses
of tag changes to explicitly use a name.

By: feildmaster <admin@feildmaster.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2013-10-10 17:54:29 -05:00
Ursprung 68620f46d3
Commit 88ea700cf9

Datei anzeigen

@ -191,10 +191,11 @@ public final class CraftItemStack extends ItemStack {
if (item == null) {
return false;
}
if (item.tag != null) {
return true;
if (item.tag == null) {
item.setTag(new NBTTagCompound("tag"));
}
item.tag = new NBTTagCompound();
return true;
}
@ -350,7 +351,7 @@ public final class CraftItemStack extends ItemStack {
return false;
}
NBTTagCompound tag = new NBTTagCompound();
NBTTagCompound tag = new NBTTagCompound("tag");
item.setTag(tag);
((CraftMetaItem) itemMeta).applyToItem(tag);