From 0ca86d181cf9e374d871dfe929431cf8f43702ed Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Wed, 8 Oct 2025 23:56:22 +0200 Subject: [PATCH] Fix K2 compatibility --- MDbobelectronics2/prototypes/MDrecipes.lua | 14 +++++++------- MDbobelectronics2/prototypes/recipe-updates.lua | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/MDbobelectronics2/prototypes/MDrecipes.lua b/MDbobelectronics2/prototypes/MDrecipes.lua index 020fa30..6ebc09e 100644 --- a/MDbobelectronics2/prototypes/MDrecipes.lua +++ b/MDbobelectronics2/prototypes/MDrecipes.lua @@ -7,7 +7,7 @@ if mods["space-exploration"] then if mods["Krastorio2"] then bobmods.lib.recipe.remove_result("se-recycle-radar", "electronic-circuit") - bobmods.lib.recipe.add_result("se-recycle-radar", "automation-core") + bobmods.lib.recipe.add_result("se-recycle-radar", "kr-automation-core") else @@ -105,10 +105,10 @@ end if mods["Krastorio2"] then -bobmods.lib.recipe.add_ingredient("advanced-circuit", {type="item", name="electronic-components", amount=2}) -bobmods.lib.recipe.add_ingredient("advanced-processing-unit", {type="item", name="rare-metals", amount=5}) +bobmods.lib.recipe.add_ingredient("advanced-circuit", {type="item", name="kr-electronic-components", amount=2}) +bobmods.lib.recipe.add_ingredient("advanced-processing-unit", {type="item", name="kr-rare-metals", amount=5}) bobmods.lib.recipe.add_ingredient("advanced-processing-unit", {type="item", name="processing-electronics", amount=2}) -bobmods.lib.recipe.add_ingredient("advanced-processing-unit", {type="fluid", name="nitric-acid", amount=10}) +bobmods.lib.recipe.add_ingredient("advanced-processing-unit", {type="fluid", name="kr-nitric-acid", amount=10}) bobmods.lib.recipe.add_ingredient("kr-advanced-assembling-machine", {"advanced-processing-unit", amount=2}) bobmods.lib.recipe.add_ingredient("kr-advanced-furnace", {"advanced-processing-unit", amount=5}) @@ -161,10 +161,10 @@ if data.raw.item["se-processing-unit-holmium"] then data.raw.item["se-processing end --progression fix for krastorio: -if data.raw.fluid["hydrogen-chloride"] then +if data.raw.fluid["kr-hydrogen-chloride"] then -bobmods.lib.tech.add_recipe_unlock("kr-fluids-chemistry", "hydrogen-chloride") -bobmods.lib.tech.remove_recipe_unlock("kr-advanced-chemistry", "hydrogen-chloride") +bobmods.lib.tech.add_recipe_unlock("kr-fluids-chemistry", "kr-hydrogen-chloride") +bobmods.lib.tech.remove_recipe_unlock("kr-advanced-chemistry", "kr-hydrogen-chloride") end diff --git a/MDbobelectronics2/prototypes/recipe-updates.lua b/MDbobelectronics2/prototypes/recipe-updates.lua index ce3c06a..ff32493 100644 --- a/MDbobelectronics2/prototypes/recipe-updates.lua +++ b/MDbobelectronics2/prototypes/recipe-updates.lua @@ -16,8 +16,8 @@ for i, recipe in pairs(data.raw.recipe) do end -if data.raw.fluid["hydrogen-chloride"] then - bobmods.lib.recipe.replace_ingredient("ferric-chloride-solution", "water", "hydrogen-chloride") +if data.raw.fluid["kr-hydrogen-chloride"] then + bobmods.lib.recipe.replace_ingredient("ferric-chloride-solution", "water", "kr-hydrogen-chloride") end if data.raw.item["tinned-copper-cable"] then