mirror of
https://github.com/minetest-mods/technic.git
synced 2024-09-12 08:18:30 +02: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
|
||||||
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)
|
production_level = math.floor(100 * eu_supply / max_output)
|
||||||
|
|
||||||
if production_level > 0 then
|
if production_level > 0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user