From d073560d10a9dd60d31514b2a93eca49f6ab7645 Mon Sep 17 00:00:00 2001 From: Cam B Date: Sat, 23 Jan 2021 17:34:48 +0000 Subject: [PATCH] Invalid sides too --- tubelib/command.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tubelib/command.lua b/tubelib/command.lua index eb72ab4..884568e 100644 --- a/tubelib/command.lua +++ b/tubelib/command.lua @@ -349,6 +349,12 @@ function tubelib.register_node(name, add_names, node_definition) Tube:set_valid_sides(n, node_definition.valid_sides) end end + if node_definition.invalid_sides then + Tube:set_invalid_sides(name, node_definition.invalid_sides) + for _,n in ipairs(add_names) do + Tube:set_invalid_sides(n, node_definition.invalid_sides) + end + end tubelib.KnownNodes[name] = true for _,n in ipairs(add_names) do tubelib.KnownNodes[n] = true