From a6f7249b54b2cb4d3368d8949cbe7b87bced6af0 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 27 Aug 2024 22:28:40 +0700 Subject: [PATCH] Fix energetic and matter recipe types of matter entangler wasnt registered --- .../ru/dbotthepony/mc/otm/recipe/MatterEntanglerRecipe.kt | 4 ++-- src/main/kotlin/ru/dbotthepony/mc/otm/registry/MRecipes.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/recipe/MatterEntanglerRecipe.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/recipe/MatterEntanglerRecipe.kt index 598bb6ea1..b993b1c9d 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/recipe/MatterEntanglerRecipe.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/recipe/MatterEntanglerRecipe.kt @@ -132,7 +132,7 @@ open class MatterEntanglerRecipe( } } - private object EnergySerializer : RecipeSerializer { + object EnergySerializer : RecipeSerializer { private val energyCodec: MapCodec = codec.xmap(::Energy, Energy::parent) private val energyStreamCodec: StreamCodec = streamCodec.map(::Energy, Energy::parent) @@ -145,7 +145,7 @@ open class MatterEntanglerRecipe( } } - private object MatterSerializer : RecipeSerializer { + object MatterSerializer : RecipeSerializer { private val matterCodec: MapCodec = codec.xmap(::Matter, Matter::parent) private val matterStreamCodec: StreamCodec = streamCodec.map(::Matter, Matter::parent) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/registry/MRecipes.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/registry/MRecipes.kt index aff480eb6..5bf2f9bb6 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/registry/MRecipes.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/registry/MRecipes.kt @@ -41,8 +41,8 @@ object MRecipes { serializers.register("painter") { PainterRecipe.Companion } serializers.register("painter_armor_dye") { PainterArmorDyeRecipe.Companion } serializers.register("matter_entangler") { MatterEntanglerRecipe.Companion } - serializers.register("matter_entangler_energetic") { MatterEntanglerRecipe.Companion } - serializers.register("matter_entangler_matter") { MatterEntanglerRecipe.Companion } + serializers.register("matter_entangler_energetic") { MatterEntanglerRecipe.EnergySerializer } + serializers.register("matter_entangler_matter") { MatterEntanglerRecipe.MatterSerializer } serializers.register("microwave") { MicrowaveRecipe.Companion } } }