Prevent creating a global

This commit is contained in:
Auke Kok 2016-12-15 15:02:29 -08:00 committed by Auke Kok
parent 085e9d56bc
commit 81f77ae97e

View File

@ -80,6 +80,7 @@ function stairsplus:register_6dfacedir_conversion(modname, material)
chance = 1, chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider) action = function(pos, node, active_object_count, active_object_count_wider)
local fdir = node.param2 or 0 local fdir = node.param2 or 0
local nfdir
if flip_upside_down and not flip_to_wall then if flip_upside_down and not flip_to_wall then
nfdir = dirs1[fdir + 2] nfdir = dirs1[fdir + 2]