mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-22 07:13:48 +01:00
Invalid sides too
This commit is contained in:
parent
dab766b30d
commit
d073560d10
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user