From 20d54e5c045ff901b394dec60ccc7b522c4fe16d Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Thu, 25 Dec 2025 22:26:27 +0100 Subject: [PATCH] Properly unlock bronze when foundry is disabled --- IntermediatesForYou2/prototypes/recipes.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/IntermediatesForYou2/prototypes/recipes.lua b/IntermediatesForYou2/prototypes/recipes.lua index ae05024..64e4995 100644 --- a/IntermediatesForYou2/prototypes/recipes.lua +++ b/IntermediatesForYou2/prototypes/recipes.lua @@ -198,7 +198,7 @@ util.add_unlock("logistics", "spring") util.add_unlock("rocket-silo","satellite-body") util.add_unlock("fast-inserter", "shock-absorber") -if mods["bzfoundry2"] and data.raw.item["bronze-plate"] then +if data.raw.item["bronze-plate"] then local bronze_plate_icon = data.raw.item["bronze-plate"].icon or data.raw.item["bronze-plate"].icons and data.raw.item["bronze-plate"].icons[1].icon local bronze_plate_icon_size = data.raw.item["bronze-plate"].icon_size @@ -223,7 +223,11 @@ if mods["bzfoundry2"] and data.raw.item["bronze-plate"] then results = {{type="item", name="spring", amount=2}}, } }) - util.add_unlock("foundry", "bronze-spring") + if mods["bzfoundry2"] and not settings.startup["bzfoundry-minimal"].value then + util.add_unlock("foundry", "bronze-spring") + else + util.add_unlock("automation", "bronze-spring") + end end if mods["ThemTharHills-Updated"] then