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:
ebfa122
)
Better way to catch that incoming nil, return a real value on the way out
author
Vanessa Ezekowitz
<vanessaezekowitz@gmail.com>
Wed, 11 Dec 2013 02:18:29 +0000
(21:18 -0500)
committer
Vanessa Ezekowitz
<vanessaezekowitz@gmail.com>
Wed, 11 Dec 2013 02:18:29 +0000
(21:18 -0500)
autoplace_tubes.lua
patch
|
blob
|
history
diff --git
a/autoplace_tubes.lua
b/autoplace_tubes.lua
index f7f7eb7d0383e19fc58e6161a172949daa78b4b4..4bb31bc3e4d4db31e91de360004d0e3542a147c2 100644
(file)
--- a/
autoplace_tubes.lua
+++ b/
autoplace_tubes.lua
@@
-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)