diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-02-26 15:15:53 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-02-26 15:16:41 -0500 |
commit | 1f49ef973ddb0e00727b4241f5d1dd1d17025faf (patch) | |
tree | f74f7527c54c9323d03050b4ba6a49210acd47c5 | |
parent | cbe97434dc6524cb8fc5163936e726db095ab222 (diff) |
cap water mill output at `max_output` and 100% :P
-rw-r--r-- | technic/machines/LV/water_mill.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/technic/machines/LV/water_mill.lua b/technic/machines/LV/water_mill.lua index ad461fb..56b3abd 100644 --- a/technic/machines/LV/water_mill.lua +++ b/technic/machines/LV/water_mill.lua @@ -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 |