diff --git a/Limestone2/data-util.lua b/Limestone2/data-util.lua index a20f4b8..81def01 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 :| diff --git a/Limestone2/recipe-final-fix.lua b/Limestone2/recipe-final-fix.lua index 5482205..8f56d04 100644 --- a/Limestone2/recipe-final-fix.lua +++ b/Limestone2/recipe-final-fix.lua @@ -1,15 +1,10 @@ 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") -end - -if mods["Krastorio2"] then - -- Conflicts with "limestone-powder" - data.raw.recipe["kr-crush-limestone"] = nil + util.remove_ingredient("se-holmium-powder", "gr_materials_gold_wire") end \ No newline at end of file