From 3a1cfad7d41cc56603381f47a811a212593e8e01 Mon Sep 17 00:00:00 2001 From: mrkubax10 Date: Sun, 16 Mar 2025 11:38:43 +0100 Subject: [PATCH] Add workaround for `NodeTimerRef.is_started` not returning correct value --- machines/simple_electric_item_processor.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/machines/simple_electric_item_processor.lua b/machines/simple_electric_item_processor.lua index c2daaed..f157418 100644 --- a/machines/simple_electric_item_processor.lua +++ b/machines/simple_electric_item_processor.lua @@ -136,6 +136,10 @@ function industrialtest.SimpleElectricItemProcessor.shouldActivate(self,pos) local meta=minetest.get_meta(pos) local inv=meta:get_inventory() + if meta:get_float("maxSrcTime")>0 and meta:get_float("srcTime")>=0 then + return false + end + -- TODO: Take elapsed time into account local requiredPower=self.opPower*industrialtest.api.getMachineSpeed(meta) if meta:get_int("industrialtest.powerAmount")