call after_recipe_change also when moving the output item to src or dst to stop the crafter as expected

This commit is contained in:
Tim 2015-01-28 21:42:34 +01:00
parent 197e433f49
commit b009e46590
1 changed files with 1 additions and 2 deletions

View File

@ -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