From 5c918706cd2b726bfa57811d6d502f427dc494a4 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sun, 23 Nov 2014 01:51:14 -0500 Subject: [PATCH] local-ize a couple of variable refs --- homedecor/lighting.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homedecor/lighting.lua b/homedecor/lighting.lua index f39d49a..94b45e8 100644 --- a/homedecor/lighting.lua +++ b/homedecor/lighting.lua @@ -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, })