From b009e4659013caa6b8afe1f70c13ce5c3a5ffb0c Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 28 Jan 2015 21:42:34 +0100 Subject: call after_recipe_change also when moving the output item to src or dst to stop the crafter as expected --- autocrafter.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'autocrafter.lua') diff --git a/autocrafter.lua b/autocrafter.lua index 8a988f8..2ccdba6 100644 --- a/autocrafter.lua +++ b/autocrafter.lua @@ -291,8 +291,7 @@ minetest.register_node("pipeworks:autocrafter", { on_output_change(pos, inv, stack) return 0 elseif from_list == "output" then - inv:set_list("output", {}) - inv:set_list("recipe", {}) + on_output_change(pos, inv, nil) if to_list ~= "recipe" then return 0 end -- else fall through to recipe list handling -- cgit v1.2.3