This commit is contained in:
Simon Brodtmann 2025-10-16 00:17:40 +02:00
parent 0e3af88f76
commit bd9e2c2dcc
2 changed files with 3 additions and 3 deletions

View file

@ -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)},
}
})

View file

@ -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)