mirror of
https://github.com/joe7575/tubelib2.git
synced 2024-11-19 22:13:49 +01:00
Slight cleanup
This commit is contained in:
parent
024f9da472
commit
3530843eee
@ -215,8 +215,6 @@ function Tube:new(attr)
|
|||||||
return o
|
return o
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- Register (foreign) tubelib compatible nodes.
|
-- Register (foreign) tubelib compatible nodes.
|
||||||
local valid_sides_default = {B=true, R=true, F=true, L=true, D=true, U=true}
|
local valid_sides_default = {B=true, R=true, F=true, L=true, D=true, U=true}
|
||||||
function Tube:add_secondary_node_names(names, valid_sides)
|
function Tube:add_secondary_node_names(names, valid_sides)
|
||||||
@ -239,8 +237,8 @@ function Tube:is_valid_side(name, side)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Checks is a particular node can be connected to
|
-- Checks if a particular node can be connected to
|
||||||
-- from a particular direction, taing into account orientation
|
-- from a particular direction, taking into account orientation
|
||||||
function Tube:is_valid_dir(node, dir)
|
function Tube:is_valid_dir(node, dir)
|
||||||
if dir ~= nil then
|
if dir ~= nil then
|
||||||
local side = tubelib2.dir_to_side(dir, node.param2)
|
local side = tubelib2.dir_to_side(dir, node.param2)
|
||||||
|
Loading…
Reference in New Issue
Block a user