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:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user