diff options
author | Novatux <nathanael.courant@laposte.net> | 2014-08-14 16:22:03 +0200 |
---|---|---|
committer | Novatux <nathanael.courant@laposte.net> | 2014-08-14 16:22:03 +0200 |
commit | d5480f5ff0ede03df2d212e2236e2da71c1046da (patch) | |
tree | 5f2ae5daecbbb02a966e9b623e4ed205798b5c42 /trashcan.lua | |
parent | a9866aa5d5593b68f279724befa031833b360e44 (diff) |
Major rewrite of items in tubes
Diffstat (limited to 'trashcan.lua')
-rw-r--r-- | trashcan.lua | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/trashcan.lua b/trashcan.lua index 880ab59..fdec79f 100644 --- a/trashcan.lua +++ b/trashcan.lua @@ -9,15 +9,13 @@ minetest.register_node("pipeworks:trashcan", { "pipeworks_trashcan_side.png", "pipeworks_trashcan_side.png", }, - groups = { snappy = 3, tubedevice = 1, tubedevice_receiver = 1 }, + groups = {snappy = 3, tubedevice = 1, tubedevice_receiver = 1}, tube = { insert_object = function(pos, node, stack, direction) return ItemStack("") - end, - can_insert = function(pos, node, stack, direction) - return true - end, - connect_sides = { left = 1, right = 1, front = 1, back = 1, top = 1, bottom = 1 }, + end, + connect_sides = {left = 1, right = 1, front = 1, back = 1, top = 1, bottom = 1}, + priority = 1, -- Lower than anything else }, on_construct = function(pos) local meta = minetest.get_meta(pos) |