mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-11-17 07:50:31 +01:00
Better way to catch that incoming nil, return a real value on the way out
This commit is contained in:
parent
ebfa12205a
commit
e4a7af5858
|
@ -28,6 +28,8 @@ end
|
|||
|
||||
--a function for determining which side of the node we are on
|
||||
local function nodeside(node, tubedir)
|
||||
if not tubedir or not node or not node.param2 then return "back" end
|
||||
|
||||
--get a vector pointing back
|
||||
local backdir = minetest.facedir_to_dir(node.param2)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user