From 5bae710a69bb400c5c02358fb9bbe0eaa2d223fb Mon Sep 17 00:00:00 2001 From: mrkubax10 Date: Mon, 18 Mar 2024 15:34:08 +0100 Subject: [PATCH] Fix simple electric item processors not resuming after removing items from dst slot --- machines/common.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/machines/common.lua b/machines/common.lua index 1b77888..fa38072 100644 --- a/machines/common.lua +++ b/machines/common.lua @@ -640,7 +640,7 @@ simpleElectricItemProcessor.onMetadataInventoryMove=function(pos,fromList,fromIn if meta:get_int("industrialtest.powerAmount")>0 then meta:set_string("formspec",simpleElectricItemProcessor.getFormspec(pos)) end - elseif fromList=="dst" and dstSlot:get_free_space()==0 then + elseif fromList=="dst" and dstSlot:get_free_space()>0 then minetest.get_node_timer(pos):start(industrialtest.updateDelay) end end @@ -656,7 +656,7 @@ simpleElectricItemProcessor.onMetadataInventoryTake=function(pos,listname,index, if meta:get_int("industrialtest.powerAmount")>0 then meta:set_string("formspec",simpleElectricItemProcessor.getFormspec(pos)) end - elseif listname=="dst" and dstSlot:get_free_space()==0 then + elseif listname=="dst" and dstSlot:get_free_space()>0 then minetest.get_node_timer(pos):start(industrialtest.updateDelay) end end