local-ize a couple of variable refs

This commit is contained in:
Vanessa Ezekowitz 2014-11-23 01:51:14 -05:00
parent b586285741
commit 5c918706cd

View File

@ -35,7 +35,7 @@ for i in ipairs(colors) do
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
local fdir = node.param2 or 0
nfdir = dirs2[fdir+1]
local nfdir = dirs2[fdir+1]
minetest.add_node(pos, {name = "homedecor:glowlight_quarter_"..color, param2 = nfdir})
end,
})
@ -46,7 +46,7 @@ for i in ipairs(colors) do
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
local fdir = node.param2 or 0
nfdir = dirs2[fdir+1]
local nfdir = dirs2[fdir+1]
minetest.add_node(pos, {name = "homedecor:glowlight_half_"..color, param2 = nfdir})
end,
})