From 0110b1985e30d64058c14220364e56cd68e2799a Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Sun, 2 Nov 2025 10:27:52 +0100 Subject: [PATCH 1/2] Fix booleans being strings --- bztin2/data-util.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bztin2/data-util.lua b/bztin2/data-util.lua index 6684519..134184b 100644 --- a/bztin2/data-util.lua +++ b/bztin2/data-util.lua @@ -1748,8 +1748,8 @@ function util.replace_ingredients_prior_to(tech, old, new, multiplier) end util.remove_prior_unlocks(tech, old) for i, recipe in pairs(data.raw.recipe) do - if (recipe.enabled and recipe.enabled ~= 'false') - and (not recipe.hidden or recipe.hidden == 'true') -- probably don't want to change hidden recipes + if (recipe.enabled and recipe.enabled ~= false) + and (not recipe.hidden or recipe.hidden == true) -- probably don't want to change hidden recipes and string.sub(recipe.name, 1, 3) ~= 'se-' -- have to exlude SE in general :( then -- log("BZZZ due to 'enabled' replacing " .. old .. " with " .. new .." in " .. recipe.name) -- Handy Debug :| From 5e2f97fb98799aeaaa19848e8f34ed57e9286f58 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Sun, 2 Nov 2025 10:28:08 +0100 Subject: [PATCH 2/2] Change optics to lamp --- bztin2/tin-recipe-updates.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bztin2/tin-recipe-updates.lua b/bztin2/tin-recipe-updates.lua index 891f0ec..b2835be 100644 --- a/bztin2/tin-recipe-updates.lua +++ b/bztin2/tin-recipe-updates.lua @@ -183,7 +183,7 @@ end if mods.bztungsten2 and not mods.bzaluminum2 then util.replace_ingredient("small-lamp", "copper-cable", "tinned-cable") - util.add_prerequisite("optics", "tinned-cable") + util.add_prerequisite("lamp", "tinned-cable") end if mods.bobassembly then