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