mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 01:31:29 +01:00
Additional commit to fix #BUKKIT-24
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
57daa70dec
commit
52416316cb
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user