Compare commits

..

2 commits

Author SHA1 Message Date
Simon Brodtmann
be3de186f2 Fix booleans being strings 2025-11-01 12:48:24 +01:00
pla
29eed595fa Make bz* and bz*2 compatible (#1)
If you accept the PR, don't forget to add the bz* mods to the info.json

Co-authored-by: pla
Reviewed-on: #1
Co-authored-by: pla
Co-committed-by: pla
2025-11-01 12:48:24 +01:00
2 changed files with 7 additions and 2 deletions

View file

@ -869,8 +869,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 :|

View file

@ -10,10 +10,15 @@
"base >= 2.0.0",
"? bismuth",
"? BrassTacks-Updated",
"? bzcarbon",
"? bzcarbon2",
"? bzfoundry",
"? bzfoundry2",
"? bzlead",
"? bzlead2",
"? bzsilicon",
"? bzsilicon2",
"? bztin",
"? bztin2",
"? IfNickel-Updated",
"? Krastorio2",