From f7cf02ff6f0ed104744b5a29c2a9a84a3d8f3183 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Tue, 24 Feb 2026 22:50:09 +0100 Subject: [PATCH] Fix booleans being strings --- bzzirconium2/data-util.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bzzirconium2/data-util.lua b/bzzirconium2/data-util.lua index bc3e734..c0724dd 100644 --- a/bzzirconium2/data-util.lua +++ b/bzzirconium2/data-util.lua @@ -1761,8 +1761,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 :|