mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-05 18:31:29 +01:00
Additional commit to fix #BUKKIT-24
This commit is contained in:
parent
84b0310ae8
commit
3ee8a2372c
@ -203,8 +203,12 @@ public class CraftItemStack extends ItemStack {
|
|||||||
list.add(subtag);
|
list.add(subtag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (enchantments.isEmpty()) {
|
||||||
|
tag.remove("ench");
|
||||||
|
} else {
|
||||||
tag.set("ench", list);
|
tag.set("ench", list);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public net.minecraft.server.ItemStack getHandle() {
|
public net.minecraft.server.ItemStack getHandle() {
|
||||||
return item;
|
return item;
|
||||||
|
Loading…
Reference in New Issue
Block a user