From 3918f614370cfe3191b5d93271d1791d522d437c Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Sat, 21 Aug 2021 22:45:45 +0200 Subject: [PATCH] Fix the glowing gravel bug --- energy_storage/heatexchanger2.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/energy_storage/heatexchanger2.lua b/energy_storage/heatexchanger2.lua index 1cb7c9f..967e26a 100644 --- a/energy_storage/heatexchanger2.lua +++ b/energy_storage/heatexchanger2.lua @@ -130,6 +130,9 @@ end local function check_TES_integrity(pos, nvm) 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 return heatexchanger1_cmnd(pos, "volume") end