Skip to content
Snippets Groups Projects
Commit 0f1b8418 authored by Vanessa Ezekowitz's avatar Vanessa Ezekowitz
Browse files

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

parent f6701bd9
No related branches found
No related tags found
No related merge requests found
......@@ -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
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment