summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim <t4im@users.noreply.github.com>2015-01-28 21:42:34 +0100
committerTim <t4im@users.noreply.github.com>2015-01-28 21:45:43 +0100
commitb009e4659013caa6b8afe1f70c13ce5c3a5ffb0c (patch)
treecd7163fa468165f8caf065b6f545300703a63e81
parent197e433f49edaf39377d0dfa9ce0485030542501 (diff)
downloadpipeworks-b009e4659013caa6b8afe1f70c13ce5c3a5ffb0c.tar
pipeworks-b009e4659013caa6b8afe1f70c13ce5c3a5ffb0c.tar.gz
pipeworks-b009e4659013caa6b8afe1f70c13ce5c3a5ffb0c.tar.bz2
pipeworks-b009e4659013caa6b8afe1f70c13ce5c3a5ffb0c.tar.xz
pipeworks-b009e4659013caa6b8afe1f70c13ce5c3a5ffb0c.zip
call after_recipe_change also when moving the output item to src or dst to stop the crafter as expected
-rw-r--r--autocrafter.lua3
1 files changed, 1 insertions, 2 deletions
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