From d134d735f9d20db384f1b3d70e430345eeb7e440 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Wed, 22 Oct 2025 22:26:27 +0200 Subject: [PATCH 1/2] Fix booleans being strings --- ChemistryForYou2/data-util.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ChemistryForYou2/data-util.lua b/ChemistryForYou2/data-util.lua index 81def01..a20f4b8 100644 --- a/ChemistryForYou2/data-util.lua +++ b/ChemistryForYou2/data-util.lua @@ -855,8 +855,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 eedef2d3174f0d02f60a43a4b6a4959c167ddbc4 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Wed, 22 Oct 2025 22:26:48 +0200 Subject: [PATCH 2/2] Fix zeolite recipe for when silica is not present --- ChemistryForYou2/prototypes/recipes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChemistryForYou2/prototypes/recipes.lua b/ChemistryForYou2/prototypes/recipes.lua index 2314d70..c808575 100644 --- a/ChemistryForYou2/prototypes/recipes.lua +++ b/ChemistryForYou2/prototypes/recipes.lua @@ -321,7 +321,7 @@ data:extend({ order = "a", enabled = false, energy_required = 8, - ingredients = {{type="item", name="sodium-aluminate", amount=5},(data.raw.fluid["gas"] and {type="item", name="silica", amount=5}) or {type="item", name="stone", amount=5}, {type="fluid", name="water", amount=100}}, + ingredients = {{type="item", name="sodium-aluminate", amount=5},(data.raw.item["silica"] and {type="item", name="silica", amount=5}) or {type="item", name="stone", amount=5}, {type="fluid", name="water", amount=100}}, results = {{type="item", name="zeolite", amount=10}}, }, {