summaryrefslogtreecommitdiff
path: root/autoplace_tubes.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-12-10 21:09:38 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-12-10 21:09:38 -0500
commit4f9c7a43c9f1f0ab3286c755c49bd8d2951b4dc8 (patch)
tree485d0f4c908a6e33c95872cae781e29201b9b4dd /autoplace_tubes.lua
parentbd58778810d472f5aa31be071304b286f83ee8b9 (diff)
downloadpipeworks-4f9c7a43c9f1f0ab3286c755c49bd8d2951b4dc8.tar
pipeworks-4f9c7a43c9f1f0ab3286c755c49bd8d2951b4dc8.tar.gz
pipeworks-4f9c7a43c9f1f0ab3286c755c49bd8d2951b4dc8.tar.bz2
pipeworks-4f9c7a43c9f1f0ab3286c755c49bd8d2951b4dc8.tar.xz
pipeworks-4f9c7a43c9f1f0ab3286c755c49bd8d2951b4dc8.zip
catch nil return from facedir_to_dir() in tube autoplace code
Diffstat (limited to 'autoplace_tubes.lua')
-rw-r--r--autoplace_tubes.lua2
1 files changed, 1 insertions, 1 deletions
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