diff --git a/MDbobelectronics2/prototypes/recipe-updates.lua b/MDbobelectronics2/prototypes/recipe-updates.lua index 1ef2f43..63a7db1 100644 --- a/MDbobelectronics2/prototypes/recipe-updates.lua +++ b/MDbobelectronics2/prototypes/recipe-updates.lua @@ -28,10 +28,9 @@ if data.raw.item["tinned-copper-cable"] then end if data.raw.item["carbon"] then - bobmods.lib.recipe.replace_ingredient("basic-electronic-components", "coal", "carbon") -elseif data.raw.item["coke"] then - bobmods.lib.recipe.replace_ingredient("basic-electronic-components", "coal", "coke") +elseif data.raw.item[mods["Krastorio2"] and "kr-coke" or "coke"] then + bobmods.lib.recipe.replace_ingredient("basic-electronic-components", "coal", mods["Krastorio2"] and "kr-coke" or "coke") end if data.raw.item["silicon-wafer"] then