mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
Additional commit to fix #BUKKIT-24
This commit is contained in:
parent
84b0310ae8
commit
3ee8a2372c
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue