summaryrefslogtreecommitdiff
path: root/technic
diff options
context:
space:
mode:
Diffstat (limited to 'technic')
-rw-r--r--technic/machines/LV/water_mill.lua2
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