diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2014-01-12 02:10:34 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2014-01-12 02:10:34 -0500 |
commit | 653b65a168419aa0c6b3034fc95a8d0cc79d8b0b (patch) | |
tree | 0266319ecb95462af4d76c033c4cdda97c4f02dc | |
parent | 9f66fd40ad45d80d7f3e3a7dd61a6789e101a9e5 (diff) | |
download | pipeworks-653b65a168419aa0c6b3034fc95a8d0cc79d8b0b.tar pipeworks-653b65a168419aa0c6b3034fc95a8d0cc79d8b0b.tar.gz pipeworks-653b65a168419aa0c6b3034fc95a8d0cc79d8b0b.tar.bz2 pipeworks-653b65a168419aa0c6b3034fc95a8d0cc79d8b0b.tar.xz pipeworks-653b65a168419aa0c6b3034fc95a8d0cc79d8b0b.zip |
fix missing tubelike meta on legacy tubes
(kept them from properly routing items after placement)
-rw-r--r-- | tubes.lua | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |