Fix the glowing gravel bug
This commit is contained in:
parent
c4247a4434
commit
3918f61437
@ -130,6 +130,9 @@ end
|
|||||||
|
|
||||||
local function check_TES_integrity(pos, nvm)
|
local function check_TES_integrity(pos, nvm)
|
||||||
nvm.ticks = (nvm.ticks or 0) + 1
|
nvm.ticks = (nvm.ticks or 0) + 1
|
||||||
|
if (nvm.ticks % 5) == 0 then -- every 10 saec
|
||||||
|
glowing(pos, nvm, (nvm.capa or 0) / (nvm.capa_max or 1) > 0.8)
|
||||||
|
end
|
||||||
if (nvm.ticks % 30) == 0 then -- every minute
|
if (nvm.ticks % 30) == 0 then -- every minute
|
||||||
return heatexchanger1_cmnd(pos, "volume")
|
return heatexchanger1_cmnd(pos, "volume")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user