projects
/
zefram
/
minetest
/
pipeworks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd58778
)
catch nil return from facedir_to_dir() in tube autoplace code
author
Vanessa Ezekowitz
<vanessaezekowitz@gmail.com>
Wed, 11 Dec 2013 02:09:38 +0000
(21:09 -0500)
committer
Vanessa Ezekowitz
<vanessaezekowitz@gmail.com>
Wed, 11 Dec 2013 02:09:38 +0000
(21:09 -0500)
autoplace_tubes.lua
patch
|
blob
|
history
diff --git
a/autoplace_tubes.lua
b/autoplace_tubes.lua
index f7f7eb7d0383e19fc58e6161a172949daa78b4b4..3b95c3466cbfafc5e4b425e4952460460f72b89b 100644
(file)
--- 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