From 4f9c7a43c9f1f0ab3286c755c49bd8d2951b4dc8 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Tue, 10 Dec 2013 21:09:38 -0500 Subject: [PATCH] catch nil return from facedir_to_dir() in tube autoplace code --- autoplace_tubes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoplace_tubes.lua b/autoplace_tubes.lua index f7f7eb7..3b95c34 100644 --- a/autoplace_tubes.lua +++ b/autoplace_tubes.lua @@ -29,7 +29,7 @@ end --a function for determining which side of the node we are on local function nodeside(node, tubedir) --get a vector pointing back - local backdir = minetest.facedir_to_dir(node.param2) + local backdir = minetest.facedir_to_dir(node.param2) or {} --check whether the vector is equivalent to the tube direction; if it is, the tube's on the backside if backdir.x == tubedir.x and backdir.y == tubedir.y and backdir.z == tubedir.z then -- 2.30.2