Skip to content

Commit

Permalink
Fixes enchanted book meta not displayed (#328)
Browse files Browse the repository at this point in the history
Apparently in Spigot EnchantmentStorage has a map that is not used for enchantment storing. Nice.

Fixes #327
  • Loading branch information
BONNe committed Dec 20, 2023
1 parent a90d17d commit c351225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/world/bentobox/challenges/utils/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ public static String prettifyObject(ItemStack item, @Nullable EnchantmentStorage

StringBuilder builder = new StringBuilder();

enchantmentMeta.getEnchants().forEach((enchantment, level) -> {
enchantmentMeta.getStoredEnchants().forEach((enchantment, level) -> {
builder.append("\n");
builder.append(user.getTranslationOrNothing(Constants.ITEM_STACKS + "meta.enchant-meta",
"[type]", prettifyObject(enchantment, user),
Expand Down

0 comments on commit c351225

Please sign in to comment.