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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

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));
}
}
}
}