diff --git a/gradle.properties b/gradle.properties index dcf149f..9568a19 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ org.gradle.parallel=true enabledPlatforms=fabric,neoforge -version=0.0.4 +version=0.0.5 group=earth.terrarium.common_storage_lib minecraftVersion=1.21 diff --git a/resources/common/src/main/java/earth/terrarium/common_storage_lib/resources/fluid/ingredient/FluidIngredientType.java b/resources/common/src/main/java/earth/terrarium/common_storage_lib/resources/fluid/ingredient/FluidIngredientType.java index 5ed4561..9d13c67 100644 --- a/resources/common/src/main/java/earth/terrarium/common_storage_lib/resources/fluid/ingredient/FluidIngredientType.java +++ b/resources/common/src/main/java/earth/terrarium/common_storage_lib/resources/fluid/ingredient/FluidIngredientType.java @@ -8,6 +8,6 @@ public record FluidIngredientType(ResourceLocation id, MapCodec codec, StreamCodec streamCodec) { public FluidIngredientType(ResourceLocation id, MapCodec codec) { - this(id, codec, ByteBufCodecs.fromCodecWithRegistries(codec.codec())); + this(id, codec, ByteBufCodecs.fromCodecWithRegistries(new MapCodec.MapCodecCodec<>(codec))); } }