Fix bug #24 (Energy Storage respawn red gravel infinit)
This commit is contained in:
parent
aa7cdfba6e
commit
0b50136116
@ -163,9 +163,11 @@ end
|
||||
|
||||
local function check_TES_integrity(pos, nvm)
|
||||
nvm.ticks = (nvm.ticks or 0) + 1
|
||||
if (nvm.ticks % 5) == 0 then -- every 10 saec
|
||||
if (nvm.ticks % 5) == 0 then -- every 10 sec
|
||||
if techage.is_running(nvm) then
|
||||
glowing(pos, nvm, (nvm.capa or 0) / (nvm.capa_max or 1) > 0.8)
|
||||
end
|
||||
end
|
||||
if (nvm.ticks % 30) == 0 then -- every minute
|
||||
return heatexchanger1_cmnd(pos, "volume")
|
||||
elseif (nvm.ticks % 30) == 10 then -- every minute
|
||||
|
Loading…
Reference in New Issue
Block a user