projects
/
zefram
/
minetest
/
pipeworks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f66fd4
)
fix missing tubelike meta on legacy tubes
author
Vanessa Ezekowitz
<vanessaezekowitz@gmail.com>
Sun, 12 Jan 2014 07:10:34 +0000
(
02:10
-0500)
committer
Vanessa Ezekowitz
<vanessaezekowitz@gmail.com>
Sun, 12 Jan 2014 07:10:34 +0000
(
02:10
-0500)
(kept them from properly routing items after placement)
tubes.lua
patch
|
blob
|
history
diff --git
a/tubes.lua
b/tubes.lua
index 9c13d663dde175f128f1ce1f5ab5206c5bd71bdc..5e6ca4ff783c196034b882f68726e6541fc00c41 100644
(file)
--- 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