mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-23 17:30:30 +01:00
cap water mill output at max_output
and 100% :P
This commit is contained in:
parent
cbe97434dc
commit
1f49ef973d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user