diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-06-23 21:36:13 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-06-23 21:36:13 -0400 |
commit | 3a0fd39bf670a9210c962381455bb42cd3893fc0 (patch) | |
tree | 22094c4990441be31c887c8e31f8ed15b8460106 /item_transport.lua | |
parent | 5537257185bd510828295b0c9d7da0e542e801ff (diff) |
rewrote autoplacement code to make it more aware of filters,
autocrafter, nodebreaker, deployer, and made sure each item will only
initiate a connection to those sides which can accept such. Fixed
various autorouting bugs as I ran across them. Autorouting for various
devices is now:
filters: left and right sides only
nodebreaker, deployer: back only
autocrafter: all six sides
chests: top, bottom, left, right, back (not front)
furnace: bottom, left, right, back (not the top or front)
Diffstat (limited to 'item_transport.lua')
-rw-r--r-- | item_transport.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/item_transport.lua b/item_transport.lua index d5cb7cd..12a177c 100644 --- a/item_transport.lua +++ b/item_transport.lua @@ -33,6 +33,9 @@ minetest.register_node("pipeworks:filter", { after_place_node = function(pos) tube_scanforobjects(pos) end, + after_dig_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}}, @@ -125,6 +128,12 @@ minetest.register_node("pipeworks:mese_filter", { local inv = meta:get_inventory() return inv:is_empty("main") end, + after_place_node = function(pos) + tube_scanforobjects(pos) + end, + after_dig_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}}, |