1
0
의 미러 https://github.com/mt-mods/pipeworks.git synced 2025-09-18 19:40:38 +02:00

Better way to catch that incoming nil, return a real value on the way out

This commit is contained in:
Vanessa Ezekowitz
2013-12-10 21:18:29 -05:00
부모 ebfa12205a
커밋 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)