Additional commit to fix #BUKKIT-24

By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
CraftBukkit/Spigot 2012-01-14 12:46:23 +00:00
parent 57daa70dec
commit 52416316cb

View file

@ -203,8 +203,12 @@ public class CraftItemStack extends ItemStack {
list.add(subtag);
}
if (enchantments.isEmpty()) {
tag.remove("ench");
} else {
tag.set("ench", list);
}
}
public net.minecraft.server.ItemStack getHandle() {
return item;