diff --git a/gradle.properties b/gradle.properties index 9ba7d4c..35bd2b4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,9 +3,9 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://fabricmc.net/versions.html - minecraft_version=1.20.2 - yarn_mappings=1.20.2+build.4 - loader_version=0.14.22 + minecraft_version=1.20.4 + yarn_mappings=1.20.4+build.1 + loader_version=0.15.1 # Mod Properties mod_version = 3.1.2 @@ -13,7 +13,7 @@ org.gradle.jvmargs=-Xmx1G archives_base_name = grind-enchantments # Dependencies - fabric_api_version=0.90.0+1.20.2 + fabric_api_version=0.91.2+1.20.4 codec_config_api_version=1.0.2+1.19.3 tax_free_levels_version=loom-SNAPSHOT diff --git a/src/main/java/de/martenschaefer/grindenchantments/GrindEnchantments.java b/src/main/java/de/martenschaefer/grindenchantments/GrindEnchantments.java index 73e1e11..db45fbd 100644 --- a/src/main/java/de/martenschaefer/grindenchantments/GrindEnchantments.java +++ b/src/main/java/de/martenschaefer/grindenchantments/GrindEnchantments.java @@ -68,7 +68,7 @@ public static ItemStack addLevelCostLore(ItemStack stack, IntSupplier cost, bool MutableText text = Text.literal("Enchantment cost: " + cost.getAsInt()) .formatted(canTakeItem ? Formatting.GREEN : Formatting.RED); - lore.add(NbtString.of(Text.Serializer.toJson(text))); + lore.add(NbtString.of(Text.Serialization.toJsonString(text))); return changed; }