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,7 +197,11 @@ public class Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!enchantments.isEmpty()) {
|
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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue