diff --git a/IntermediatesForYou2/prototypes/recipes.lua b/IntermediatesForYou2/prototypes/recipes.lua index 0dfc2e7..49a5439 100644 --- a/IntermediatesForYou2/prototypes/recipes.lua +++ b/IntermediatesForYou2/prototypes/recipes.lua @@ -217,9 +217,9 @@ end if data.raw.item["circuit-board"] then table.insert(low_quality_advanced_circuit_ingredients, {type="item", name="circuit-board", amount=1}) end -local low_quality_advanced_circuit_results = {{name="advanced-circuit", amount=1, probability=0.75}} +local low_quality_advanced_circuit_results = {{ type = "item", name = "advanced-circuit", amount=1, probability=0.75}} if mods["space-exploration"] then - table.insert(low_quality_advanced_circuit_results, {name="se-scrap", amount=1, probability=0.25}) + table.insert(low_quality_advanced_circuit_results, { type = "item", name = "se-scrap", amount=1, probability=0.25}) end data:extend({ diff --git a/IntermediatesForYou2/recipe-final-fix.lua b/IntermediatesForYou2/recipe-final-fix.lua index 5e9d76b..125f44e 100644 --- a/IntermediatesForYou2/recipe-final-fix.lua +++ b/IntermediatesForYou2/recipe-final-fix.lua @@ -39,6 +39,6 @@ if mods["space-exploration"] then if mods["248k-Redux"] then util.replace_ingredient("se-canister", "plastic-bar", "fi_materials_GFK", 5) - util.remove_ingredient("se-canister", "glass") + util.remove_ingredient("se-canister", mods["Krastorio2"] and "kr-glass" or "glass") end end \ No newline at end of file diff --git a/IntermediatesForYou2/recipe-modify.lua b/IntermediatesForYou2/recipe-modify.lua index 53a1ec5..c12f6e1 100644 --- a/IntermediatesForYou2/recipe-modify.lua +++ b/IntermediatesForYou2/recipe-modify.lua @@ -149,7 +149,7 @@ end --electronics if (mods["MDbobelectronics2"] and mods["Krastorio2"]) or false then util.replace_ingredient("kr-electronic-components", "plastic-bar", "basic-electronic-components") - util.replace_ingredient("kr-electronic-components", "glass", "BOBMD-electronic-components") + util.replace_ingredient("kr-electronic-components", mods["Krastorio2"] and "kr-glass" or "glass", "BOBMD-electronic-components") util.remove_ingredient("kr-electronic-components", "silicon-wafer") util.remove_ingredient("processing-unit", "cpu") @@ -182,7 +182,7 @@ if mods["Krastorio2"] then end end --make the greenhouse upgradeable to bio lab - util.remove_ingredient("kr-bio-lab", "glass") + util.remove_ingredient("kr-bio-lab", "kr-glass") util.remove_ingredient("kr-bio-lab", "kr-iron-beam") util.add_ingredient("kr-bio-lab", "kr-greenhouse", 1) @@ -228,7 +228,7 @@ if mods["space-exploration"] then if mods["248k-Redux"] then util.replace_ingredient("se-canister", "plastic-bar", "fi_materials_GFK", 5) - util.remove_ingredient("se-canister", "glass") + util.remove_ingredient("se-canister", mods["Krastorio2"] and "kr-glass" or "glass") util.add_ingredient("effectivity-module-2", "el_lithium_battery", 10) end @@ -236,5 +236,5 @@ end if mods["BrassTacks-Updated"] then util.set_main_product("zinc-plate", "zinc-plate") - util.add_product("zinc-plate", {name="silver-ore", amount=1, probability=0.06}) + util.add_product("zinc-plate", {type = "item", name="silver-ore", amount=1, probability=0.06}) end \ No newline at end of file