From 5537257185bd510828295b0c9d7da0e542e801ff Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Sun, 23 Jun 2013 19:52:01 -0400 Subject: Whoops, tubes ought to connect to deployers! --- deployer.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'deployer.lua') diff --git a/deployer.lua b/deployer.lua index 7622b52..0a1cb0a 100644 --- a/deployer.lua +++ b/deployer.lua @@ -106,13 +106,13 @@ minetest.register_node("pipeworks:deployer_off", { local inv = meta:get_inventory() inv:set_size("main", 3*3) end, - can_dig = function(pos,player) local meta = minetest.env:get_meta(pos); local inv = meta:get_inventory() return inv:is_empty("main") end, - + after_place_node = tube_scanforobjects, + after_dig_node = tube_scanforobjects, }) minetest.register_node("pipeworks:deployer_on", { @@ -152,4 +152,6 @@ minetest.register_node("pipeworks:deployer_on", { local inv = meta:get_inventory() return inv:is_empty("main") end, + after_place_node = tube_scanforobjects, + after_dig_node = tube_scanforobjects, }) -- cgit v1.2.3