1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2026-01-03 22:16:31 +00:00

Fix enchantments on books Bedrock -> Java (#3713)

This commit is contained in:
onebeastchris
2023-04-28 22:29:46 +02:00
committed by GitHub
parent 8a25afbc8f
commit baae46822e

View File

@@ -197,7 +197,11 @@ public class Item {
}
}
if (!enchantments.isEmpty()) {
tag.put(new ListTag("Enchantments", enchantments));
if ((this instanceof EnchantedBookItem)) {
tag.put(new ListTag("StoredEnchantments", enchantments));
} else {
tag.put(new ListTag("Enchantments", enchantments));
}
}
}
}