lighting: actually get meta before trying to use it :)

This commit is contained in:
Vanessa Ezekowitz 2017-02-27 17:02:20 -05:00
parent f6701bd9cd
commit 0f1b8418a1
1 changed files with 2 additions and 1 deletions

View File

@ -642,12 +642,13 @@ minetest.register_lbm({
param2 = paletteidx
end
local meta = minetest.get_meta(pos)
if string.find(name, "table_lamp") or string.find(name, "standing_lamp") then
meta:set_string("palette", "ext")
end
minetest.set_node(pos, { name = new_node, param2 = param2 })
local meta = minetest.get_meta(pos)
meta:set_string("dye", "unifieddyes:"..color)
end
})