From 5e91da68cf5ce438d5bf5016e1bc806a0fd998e9 Mon Sep 17 00:00:00 2001 From: YuRaNnNzZZ Date: Sun, 22 Oct 2023 07:48:03 +0300 Subject: [PATCH] separate parent recipe in upgrade recipe output --- .../ru/dbotthepony/mc/otm/datagen/recipes/MatteryRecipe.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/data/kotlin/ru/dbotthepony/mc/otm/datagen/recipes/MatteryRecipe.kt b/src/data/kotlin/ru/dbotthepony/mc/otm/datagen/recipes/MatteryRecipe.kt index 679c92fb2..7e2e75f89 100644 --- a/src/data/kotlin/ru/dbotthepony/mc/otm/datagen/recipes/MatteryRecipe.kt +++ b/src/data/kotlin/ru/dbotthepony/mc/otm/datagen/recipes/MatteryRecipe.kt @@ -185,8 +185,7 @@ class MatteryRecipe(val result: ItemLike, val count: Int = 1, val category: Reci return { object : FinishedRecipe by it { override fun serializeRecipeData(pJson: JsonObject) { - it.serializeRecipeData(pJson) - + pJson["parent"] = it.serializeRecipe() pJson["copyPaths"] = UpgradeRecipe.COPY_PATHS_CODEC.toJsonStrict(copyPaths) pJson["source"] = upgradeSource!!.toString() }