aboutsummaryrefslogtreecommitdiff
path: root/stairsplus
diff options
context:
space:
mode:
authorAuke Kok <sofar@foo-projects.org>2016-12-15 15:02:29 -0800
committerAuke Kok <sofar+github@foo-projects.org>2016-12-31 12:33:09 -0800
commit81f77ae97e7886982f958e12cc873037058fff52 (patch)
tree3b848be2dd87e869b8da6066e68eb13c754790cd /stairsplus
parent085e9d56bcd963a306acdf0fe2e4e0e878600fc8 (diff)
downloadmoreblocks-81f77ae97e7886982f958e12cc873037058fff52.tar.gz
moreblocks-81f77ae97e7886982f958e12cc873037058fff52.tar.bz2
moreblocks-81f77ae97e7886982f958e12cc873037058fff52.zip
Prevent creating a global
Diffstat (limited to 'stairsplus')
-rw-r--r--stairsplus/conversion.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/stairsplus/conversion.lua b/stairsplus/conversion.lua
index 1c8981b..37f2a25 100644
--- a/stairsplus/conversion.lua
+++ b/stairsplus/conversion.lua
@@ -80,6 +80,7 @@ function stairsplus:register_6dfacedir_conversion(modname, material)
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
local fdir = node.param2 or 0
+ local nfdir
if flip_upside_down and not flip_to_wall then
nfdir = dirs1[fdir + 2]