From 215756294b04742b31bb27d751005850e58e0a97 Mon Sep 17 00:00:00 2001 From: Brevven Date: Fri, 1 Jul 2022 21:02:02 -0700 Subject: [PATCH] subgroup fix --- changelog.txt | 5 +++++ info.json | 2 +- lead-enriched.lua | 2 +- lead-recipe-se.lua | 3 ++- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index d44b7fb..c56f03a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 1.2.4 +Date: 2022-07-02 + Changes: + - SE/K2 subgroup fixes +--------------------------------------------------------------------------------------------------- Version: 1.2.3 Date: 2022-07-02 Features: diff --git a/info.json b/info.json index 2ad1874..db00884 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzlead", - "version": "1.2.3", + "version": "1.2.4", "factorio_version": "1.1", "title": "Lead", "author": "Brevven", diff --git a/lead-enriched.lua b/lead-enriched.lua index 02d6b39..60bc4d8 100644 --- a/lead-enriched.lua +++ b/lead-enriched.lua @@ -23,6 +23,7 @@ data:extend( { type = "recipe", name = "enriched-lead", + main_product = "enriched-lead", icon = "__bzlead__/graphics/icons/enriched-lead.png", icon_size = 64, icon_mipmaps = 3, @@ -51,7 +52,6 @@ data:extend( tertiary = {r = 0.690, g = 0.768, b = 0.870, a = 0.000}, quaternary = {r = 0.0, g = 0.980, b = 0.603, a = 0.900} }, - subgroup = "raw-material", order = "e03[enriched-lead]" }, { diff --git a/lead-recipe-se.lua b/lead-recipe-se.lua index 2274ef6..6027f44 100644 --- a/lead-recipe-se.lua +++ b/lead-recipe-se.lua @@ -30,7 +30,7 @@ if string.sub(mods["space-exploration"], 1, 3) == "0.6" then order = "a-h-z-a", } }) - data.raw.item["lead-plate"].subgroup = "lead" + util.set_item_subgroup("lead-plate", "lead") data:extend({ { type = "item", @@ -115,6 +115,7 @@ if string.sub(mods["space-exploration"], 1, 3) == "0.6" then util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "lead-ingot"}) util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "lead-ingot-to-plate"}) if mods["Krastorio2"] then + util.set_item_subgroup("enriched-lead", "lead") data.raw.recipe["enriched-lead-plate"].order= "d[lead-plate]" se_delivery_cannon_recipes["enriched-lead"] = {name= "enriched-lead"} else