From d66d2c3f5d7c773c02155a6c30a000a4aaa46c86 Mon Sep 17 00:00:00 2001 From: Brevven Date: Sat, 2 Jul 2022 03:04:49 -0700 Subject: [PATCH] fix subgroup stuff for multiple outputs --- changelog.txt | 5 +++++ info.json | 2 +- lead-recipe.lua | 6 +++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index 8b38888..8254907 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 1.2.5 +Date: 2022-07-02 + Fixes: + - Fix for subgroup fix +--------------------------------------------------------------------------------------------------- Version: 1.2.4 Date: 2022-07-02 Fixes: diff --git a/info.json b/info.json index db00884..0ca4181 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzlead", - "version": "1.2.4", + "version": "1.2.5", "factorio_version": "1.1", "title": "Lead", "author": "Brevven", diff --git a/lead-recipe.lua b/lead-recipe.lua index 75b5df8..d0300c1 100644 --- a/lead-recipe.lua +++ b/lead-recipe.lua @@ -7,7 +7,6 @@ data:extend({ { type = "recipe", name = util.me.lead_plate, - main_product = util.me.lead_plate, category = "smelting", order = "d[lead-plate]", icons = (mods["Krastorio2"] and @@ -20,6 +19,7 @@ data:extend({ ), normal = (mods["Krastorio2"] and { + main_product = util.me.lead_plate, enabled = true, energy_required = 16, ingredients = {{"lead-ore", 10}}, @@ -31,6 +31,7 @@ data:extend({ }, } or { + main_product = util.me.lead_plate, enabled = true, energy_required = 6.4, ingredients = {{"lead-ore", 2}}, @@ -43,6 +44,7 @@ data:extend({ }), expensive = { + main_product = util.me.lead_plate, enabled = true, energy_required = 12.8, ingredients = {{"lead-ore", 4}}, @@ -93,6 +95,8 @@ data:extend({ } or nil, }) end +log("BZZZZZZ") +log(serpent.dump(data.raw.recipe["lead-plate"])) if mods["IndustrialRevolution"] then data:extend({