diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-02-07 02:45:17 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-02-07 02:45:17 -0500 |
commit | 364633d884fa2420ab13f5444e06fb418e61d5c2 (patch) | |
tree | 113239b12b575367cb918f433d985d2e6138eb23 /trashcan.lua | |
parent | e33b662274982bf6be8213975675407633d5d92e (diff) |
make all tubes call the routing functions
using their after_place/after_dig callbacks
Diffstat (limited to 'trashcan.lua')
-rw-r--r-- | trashcan.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/trashcan.lua b/trashcan.lua index 0051aeb..87980ab 100644 --- a/trashcan.lua +++ b/trashcan.lua @@ -32,12 +32,8 @@ minetest.register_node("pipeworks:trashcan", { meta:set_string("infotext", "Trash Can") meta:get_inventory():set_size("trash", 1) end, - after_place_node = function(pos) - pipeworks.scan_for_tube_objects(pos) - end, - after_dig_node = function(pos) - pipeworks.scan_for_tube_objects(pos) - end, + after_place_node = pipeworks.after_place, + after_dig_node = pipeworks.after_dig, on_metadata_inventory_put = function(pos, listname, index, stack, player) minetest.get_meta(pos):get_inventory():set_stack(listname, index, ItemStack("")) end, |