summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony <azhang9@gmail.com>2013-04-01 14:21:39 -0300
committerAnthony <azhang9@gmail.com>2013-04-01 14:21:39 -0300
commitd784213a946a903b4aa1d57d93313564c5466348 (patch)
tree9823fb0acba2b1eaa11a0a090ee79cfcdbe947a9
parent23f889dfbc1b7d9fe34010e4f00bcadc1406af9e (diff)
downloadpipeworks-d784213a946a903b4aa1d57d93313564c5466348.tar
pipeworks-d784213a946a903b4aa1d57d93313564c5466348.tar.gz
pipeworks-d784213a946a903b4aa1d57d93313564c5466348.tar.bz2
pipeworks-d784213a946a903b4aa1d57d93313564c5466348.tar.xz
pipeworks-d784213a946a903b4aa1d57d93313564c5466348.zip
Fix tube connection to filters
Tubes did not previously connect to filters when the filters were placed after the tube.
-rw-r--r--item_transport.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/item_transport.lua b/item_transport.lua
index 305a459..b277e2d 100644
--- a/item_transport.lua
+++ b/item_transport.lua
@@ -30,6 +30,9 @@ minetest.register_node("pipeworks:filter", {
local inv = meta:get_inventory()
return inv:is_empty("main")
end,
+ after_place_node = function(pos)
+ tube_scanforobjects(pos)
+ end,
mesecons={effector={action_on=function(pos,node)
minetest.registered_nodes[node.name].on_punch(pos,node,nil)
end}},
@@ -470,4 +473,4 @@ function go_next(pos,velocity,stack)
velocity.z=chests[n].vect.z*speed
end
return 1
-end \ No newline at end of file
+end