K2 fixes
This commit is contained in:
parent
0e3af88f76
commit
bd9e2c2dcc
2 changed files with 3 additions and 3 deletions
|
|
@ -88,7 +88,7 @@ data:extend({
|
||||||
|
|
||||||
-- If no graphite ore, make it from coal or coke
|
-- If no graphite ore, make it from coal or coke
|
||||||
if not util.me.use_flake_graphite() then
|
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({
|
data:extend({
|
||||||
{
|
{
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
|
|
@ -98,7 +98,7 @@ if not util.me.use_flake_graphite() then
|
||||||
order = "d[graphite]",
|
order = "d[graphite]",
|
||||||
enabled = false,
|
enabled = false,
|
||||||
energy_required = 0.5,
|
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)},
|
results = {util.item("graphite", 2)},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ end
|
||||||
-- Green circuits in final fixes due to K2 shenanigans
|
-- Green circuits in final fixes due to K2 shenanigans
|
||||||
if mods.MDbobelectronics or mods.MDbobelectronics2 or mods.bobelectronics then
|
if mods.MDbobelectronics or mods.MDbobelectronics2 or mods.bobelectronics then
|
||||||
util.replace_ingredient("basic-electronic-components", "coal", "graphite")
|
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
|
else
|
||||||
-- Electronic circuits need final fixes
|
-- Electronic circuits need final fixes
|
||||||
function modify_ec(recipe_name, to_replace)
|
function modify_ec(recipe_name, to_replace)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue