Additional commit to fix #BUKKIT-24

This commit is contained in:
Nathan Adams 2012-01-14 12:46:23 +00:00
parent 84b0310ae8
commit 3ee8a2372c

View File

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