Skip to content

Commit

Permalink
build(version): 1.0.17->1.0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
bconlon1 committed Mar 1, 2024
1 parent 37a2e9f commit 8038841
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public final class BlockStateRecipeUtil {
public static Codec<ResourceKey<Biome>> 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<TagKey<Biome>> TAG_KEY_CODEC = Codec.STRING.comapFlatMap((to) -> to.startsWith("#")
public static Codec<TagKey<Biome>> 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<Either<ResourceKey<Biome>, TagKey<Biome>>> KEY_CODEC = ExtraCodecs.xor(RESOURCE_KEY_CODEC, TAG_KEY_CODEC);
Expand Down

0 comments on commit 8038841

Please sign in to comment.