Skip to content

Commit

Permalink
Format Code
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed Sep 24, 2023
1 parent 358775c commit 3d9c3c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion boblibrary/module-functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ end
function bobmods.lib.module.add_productivity_limitation(recipe)
if type(recipe) == "string" and data.raw.recipe[recipe] then
for i, module in pairs(data.raw.module) do
if not bobmods.lib.module.excluded_prod_modules[module.name] and module.limitation and module.effect.productivity then
if
not bobmods.lib.module.excluded_prod_modules[module.name]
and module.limitation
and module.effect.productivity
then
table.insert(module.limitation, recipe)
end
end
Expand Down

0 comments on commit 3d9c3c1

Please sign in to comment.