diff --git a/carbon-recipe.lua b/carbon-recipe.lua index e8182f4..fb222ec 100644 --- a/carbon-recipe.lua +++ b/carbon-recipe.lua @@ -88,7 +88,7 @@ data:extend({ -- If no graphite ore, make it from coal or coke if not util.me.use_flake_graphite() then - if data.raw.item["coke"] then + if data.raw.item[mods["Krastorio2"] and "kr-coke" or "coke"] then data:extend({ { type = "recipe", @@ -98,7 +98,7 @@ if not util.me.use_flake_graphite() then order = "d[graphite]", enabled = false, energy_required = 0.5, - ingredients = {util.item("coke", 1)}, + ingredients = {util.item(mods["Krastorio2"] and "kr-coke" or "coke", 1)}, results = {util.item("graphite", 2)}, } }) diff --git a/data-final-fixes.lua b/data-final-fixes.lua index 74f5df1..18ca3a2 100644 --- a/data-final-fixes.lua +++ b/data-final-fixes.lua @@ -34,7 +34,7 @@ end -- Green circuits in final fixes due to K2 shenanigans if mods.MDbobelectronics or mods.MDbobelectronics2 or mods.bobelectronics then util.replace_ingredient("basic-electronic-components", "coal", "graphite") - util.replace_ingredient("basic-electronic-components", "coke", "graphite") + util.replace_ingredient("basic-electronic-components", mods["Krastorio2"] and "kr-coke" or "coke", "graphite") else -- Electronic circuits need final fixes function modify_ec(recipe_name, to_replace)