From fe737e07037521a498427a2902168426439b06e5 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sun, 11 Sep 2022 22:13:25 +0700 Subject: [PATCH] Fix EnergyContainerRecipe not returning correct RecipeSerializer --- .../ru/dbotthepony/mc/otm/recipe/EnergyContainerRecipe.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/recipe/EnergyContainerRecipe.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/recipe/EnergyContainerRecipe.kt index 42688d380..e40e42707 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/recipe/EnergyContainerRecipe.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/recipe/EnergyContainerRecipe.kt @@ -39,6 +39,10 @@ class EnergyContainerRecipe( return itemStack } + override fun getSerializer(): RecipeSerializer<*> { + return Companion + } + companion object : RecipeSerializer { override fun fromJson(p_44103_: ResourceLocation, p_44104_: JsonObject): EnergyContainerRecipe { return EnergyContainerRecipe(ShapedRecipe.Serializer.SHAPED_RECIPE.fromJson(p_44103_, p_44104_))