cap water mill output at `max_output` and 100% :P

This commit is contained in:
Vanessa Ezekowitz 2017-02-26 15:15:53 -05:00
parent cbe97434dc
commit 1f49ef973d
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ local run = function(pos, node)
end
end
eu_supply = 50 * water_flow
eu_supply = math.min(50 * water_flow, max_output)
production_level = math.floor(100 * eu_supply / max_output)
if production_level > 0 then