summaryrefslogtreecommitdiff
path: root/autoplace_tubes.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-12-10 21:16:33 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-12-10 21:16:33 -0500
commitebfa12205a6c63204c005ea3798b45c2ac45c85d (patch)
tree6b7da5704017d48993f84e8ea16248d2beda8714 /autoplace_tubes.lua
parent4f9c7a43c9f1f0ab3286c755c49bd8d2951b4dc8 (diff)
downloadpipeworks-ebfa12205a6c63204c005ea3798b45c2ac45c85d.tar
pipeworks-ebfa12205a6c63204c005ea3798b45c2ac45c85d.tar.gz
pipeworks-ebfa12205a6c63204c005ea3798b45c2ac45c85d.tar.bz2
pipeworks-ebfa12205a6c63204c005ea3798b45c2ac45c85d.tar.xz
pipeworks-ebfa12205a6c63204c005ea3798b45c2ac45c85d.zip
Revert "catch nil return from facedir_to_dir() in tube autoplace code"
This reverts commit 4f9c7a43c9f1f0ab3286c755c49bd8d2951b4dc8.
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 3b95c34..f7f7eb7 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) or {}
+ local backdir = minetest.facedir_to_dir(node.param2)
--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