Fix simple electric item processors not resuming after removing items from dst slot
This commit is contained in:
parent
5e40904081
commit
5bae710a69
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user