summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--attic/deployer.lua1
-rw-r--r--item_transport.lua5
2 files changed, 5 insertions, 1 deletions
diff --git a/attic/deployer.lua b/attic/deployer.lua
index a57a895..fdb4b15 100644
--- a/attic/deployer.lua
+++ b/attic/deployer.lua
@@ -47,6 +47,7 @@ deployer_on = function(pos, node)
local placer={}
function placer:get_player_name() return "deployer" end
function placer:getpos() return pos end
+ function placer:get_player_control() return {jump=false,right=false,left=false,LMB=false,RMB=false,sneak=false,aux1=false,down=false,up=false} end
local stack2=minetest.item_place(stack,placer,{type="node", under=pos1, above=pos2})
invlist[i]=stack2
inv:set_list("main",invlist)
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