Compare commits

..

1 commit

Author SHA1 Message Date
pla
e5841f4467 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 <massenpost@pla1.de>
Reviewed-on: #1
Co-authored-by: pla <pla@noreply.example.org>
Co-committed-by: pla <pla@noreply.example.org>
2025-11-01 12:41:07 +01:00
2 changed files with 2 additions and 7 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,15 +10,10 @@
"base >= 2.0.0",
"? bismuth",
"? BrassTacks-Updated",
"? bzcarbon",
"? bzcarbon2",
"? bzfoundry",
"? bzfoundry2",
"? bzlead",
"? bzlead2",
"? bzsilicon",
"? bzsilicon2",
"? bztin",
"? bztin2",
"? IfNickel-Updated",
"? Krastorio2",