local-ize a variable

This commit is contained in:
Vanessa Ezekowitz 2017-02-01 11:55:17 -05:00
parent cad8a378c3
commit 5f264bc484
1 changed files with 1 additions and 0 deletions

View File

@ -256,6 +256,7 @@ minetest.register_lbm({
local paletteidx = unifieddyes.getpaletteidx("unifieddyes:"..color, "wallmounted")
local old_fdir = math.floor(node.param2 % 32)
local new_fdir = 3
local new_name
if old_fdir == 0 then
new_fdir = 3