diff --git a/gradle.properties b/gradle.properties index 4abd2f8..ca7533e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ org.gradle.daemon=false # Mod mod_id=nitrogen_internals mod_name=Nitrogen -mod_version=1.0.17 +mod_version=1.0.18 mc_version=1.20.2 neoforge_version=20.2.88 mappings=2023.12.10 diff --git a/src/main/java/com/aetherteam/nitrogen/recipe/BlockStateRecipeUtil.java b/src/main/java/com/aetherteam/nitrogen/recipe/BlockStateRecipeUtil.java index cc9c1b4..f048319 100644 --- a/src/main/java/com/aetherteam/nitrogen/recipe/BlockStateRecipeUtil.java +++ b/src/main/java/com/aetherteam/nitrogen/recipe/BlockStateRecipeUtil.java @@ -33,7 +33,7 @@ public final class BlockStateRecipeUtil { public static Codec> RESOURCE_KEY_CODEC = Codec.STRING.comapFlatMap((to) -> !to.startsWith("#") ? DataResult.success(ResourceKey.create(Registries.BIOME, new ResourceLocation(to))) : DataResult.error(() -> "Value is not a resource key"), (from) -> from.location().toString()); - public static Codec> TAG_KEY_CODEC = Codec.STRING.comapFlatMap((to) -> to.startsWith("#") + public static Codec> TAG_KEY_CODEC = Codec.STRING.comapFlatMap((to) -> to.startsWith("#") ? DataResult.success(TagKey.create(Registries.BIOME, new ResourceLocation(to.replace("#", "")))) : DataResult.error(() -> "Value is not a tag key"), (from) -> "#" + from.location()); public static Codec, TagKey>> KEY_CODEC = ExtraCodecs.xor(RESOURCE_KEY_CODEC, TAG_KEY_CODEC);