mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-11-10 20:40:18 +01:00
fix missing tubelike meta on legacy tubes
(kept them from properly routing items after placement)
This commit is contained in:
parent
9f66fd40ad
commit
653b65a168
|
@ -182,6 +182,10 @@ pipeworks.register_tube = function(name, desc, plain, noctrs, ends, short, inv,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
description = "Pneumatic tube segment (legacy)",
|
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)
|
after_place_node = function(pos)
|
||||||
pipeworks.scan_for_tube_objects(pos)
|
pipeworks.scan_for_tube_objects(pos)
|
||||||
if minetest.registered_nodes[name.."_1"].after_place_node_ then
|
if minetest.registered_nodes[name.."_1"].after_place_node_ then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user