3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-19 13:00:06 +01:00

Fix removing enchantments causing the enchantment tag to remain.

Dieser Commit ist enthalten in:
feildmaster 2012-12-27 20:48:56 -06:00
Ursprung 54b2707ba7
Commit b908c192bf

Datei anzeigen

@ -233,11 +233,12 @@ public final class CraftItemStack extends ItemStack {
if (index == Integer.MIN_VALUE) {
return 0;
}
if (index == 0 && size == 0) {
if (index == 0 && size == 1) {
handle.tag.o(ENCHANTMENTS.NBT);
if (handle.tag.d()) {
handle.tag = null;
}
return ((NBTTagCompound) list.get(0)).getShort(ENCHANTMENTS_ID.NBT);
}
listCopy = new NBTTagList(ENCHANTMENTS.NBT);