mirror of
https://github.com/sirrobzeroone/elepower.git
synced 2024-11-30 10:33:44 +01:00
oops
This commit is contained in:
parent
6b1d222d1d
commit
2777d32043
@ -77,10 +77,14 @@ function ele.register_wind_generator(nodename, nodedef)
|
||||
break
|
||||
end
|
||||
|
||||
pow_buffer.usage = wind
|
||||
if pow_buffer.storage + pow_buffer.usage > pow_buffer.capacity then
|
||||
break
|
||||
end
|
||||
|
||||
status = "Active"
|
||||
refresh = true
|
||||
|
||||
pow_buffer.usage = wind
|
||||
pow_buffer.storage = pow_buffer.storage + pow_buffer.usage
|
||||
break
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user