mirror of
https://github.com/sirrobzeroone/elepower.git
synced 2024-08-20 12:54:05 +02: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