From 1f49ef973ddb0e00727b4241f5d1dd1d17025faf Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sun, 26 Feb 2017 15:15:53 -0500 Subject: [PATCH] cap water mill output at `max_output` and 100% :P --- technic/machines/LV/water_mill.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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