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, })