From 7551f9b1395f50df9a38947b1b8d061f4d0e408c Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Wed, 10 Dec 2025 18:23:47 +0100 Subject: [PATCH 1/2] Fix booleans being strings --- Limestone2/data-util.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Limestone2/data-util.lua b/Limestone2/data-util.lua index 81def01..a20f4b8 100644 --- a/Limestone2/data-util.lua +++ b/Limestone2/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 4e33a22bec8ab773ea3b305c52705950f1ff66da Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Wed, 10 Dec 2025 18:24:05 +0100 Subject: [PATCH 2/2] Remove "kr-crush-limestone" as it conflicts with "limestone-powder" --- Limestone2/recipe-final-fix.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Limestone2/recipe-final-fix.lua b/Limestone2/recipe-final-fix.lua index 8f56d04..5482205 100644 --- a/Limestone2/recipe-final-fix.lua +++ b/Limestone2/recipe-final-fix.lua @@ -1,10 +1,15 @@ local util = require("data-util") if mods["bismuth"] then - util.remove_ingredient("bismuth-glass", "calcium-plate") - util.add_ingredient("bismuth-glass", "quicklime", 2) + util.remove_ingredient("bismuth-glass", "calcium-plate") + util.add_ingredient("bismuth-glass", "quicklime", 2) end if mods["Krastorio2"] and mods["space-exploration"] and mods["248k-Redux"] then - util.remove_ingredient("se-holmium-powder", "gr_materials_gold_wire") + util.remove_ingredient("se-holmium-powder", "gr_materials_gold_wire") +end + +if mods["Krastorio2"] then + -- Conflicts with "limestone-powder" + data.raw.recipe["kr-crush-limestone"] = nil end \ No newline at end of file