From bc85a5449d4e690eb2a72a57bf9cf4ef26907d6c Mon Sep 17 00:00:00 2001 From: mrkubax10 Date: Sun, 12 Mar 2023 12:10:20 +0100 Subject: [PATCH] Pause smelting in electric furnace if power runs out --- machines.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/machines.lua b/machines.lua index ef538e1..3277133 100644 --- a/machines.lua +++ b/machines.lua @@ -558,9 +558,6 @@ definition={ meta:set_int("industrialtest.powerAmount",meta:get_int("industrialtest.powerAmount")-requiredPower) meta:set_float("srcTime",meta:get_float("srcTime")+elapsed) shouldRerunTimer=true - else - meta:set_float("srcTime",0) - meta:set_float("maxSrcTime",-1) end shouldUpdateFormspec=true end