mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix enchantments on books Bedrock -> Java (#3713)
This commit is contained in:
parent
8a25afbc8f
commit
baae46822e
1 changed files with 5 additions and 1 deletions
|
@ -197,10 +197,14 @@ public class Item {
|
|||
}
|
||||
}
|
||||
if (!enchantments.isEmpty()) {
|
||||
if ((this instanceof EnchantedBookItem)) {
|
||||
tag.put(new ListTag("StoredEnchantments", enchantments));
|
||||
} else {
|
||||
tag.put(new ListTag("Enchantments", enchantments));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected final CompoundTag remapEnchantment(GeyserSession session, CompoundTag tag, CompoundTag rootTag) {
|
||||
Tag javaEnchId = tag.get("id");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue