From: Vanessa Ezekowitz Date: Sun, 12 Jan 2014 07:10:34 +0000 (-0500) Subject: fix missing tubelike meta on legacy tubes X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=653b65a168419aa0c6b3034fc95a8d0cc79d8b0b;p=zefram%2Fminetest%2Fpipeworks.git fix missing tubelike meta on legacy tubes (kept them from properly routing items after placement) --- diff --git a/tubes.lua b/tubes.lua index 9c13d66..5e6ca4f 100644 --- a/tubes.lua +++ b/tubes.lua @@ -182,6 +182,10 @@ pipeworks.register_tube = function(name, desc, plain, noctrs, ends, short, inv, paramtype = "light", sunlight_propagates = true, description = "Pneumatic tube segment (legacy)", + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_int("tubelike", 1) + end, after_place_node = function(pos) pipeworks.scan_for_tube_objects(pos) if minetest.registered_nodes[name.."_1"].after_place_node_ then