forked from nalc/homedecor_modpack
lighting: actually get meta before trying to use it :)
This commit is contained in:
parent
f6701bd9cd
commit
0f1b8418a1
|
@ -642,12 +642,13 @@ minetest.register_lbm({
|
||||||
param2 = paletteidx
|
param2 = paletteidx
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local meta = minetest.get_meta(pos)
|
||||||
|
|
||||||
if string.find(name, "table_lamp") or string.find(name, "standing_lamp") then
|
if string.find(name, "table_lamp") or string.find(name, "standing_lamp") then
|
||||||
meta:set_string("palette", "ext")
|
meta:set_string("palette", "ext")
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.set_node(pos, { name = new_node, param2 = param2 })
|
minetest.set_node(pos, { name = new_node, param2 = param2 })
|
||||||
local meta = minetest.get_meta(pos)
|
|
||||||
meta:set_string("dye", "unifieddyes:"..color)
|
meta:set_string("dye", "unifieddyes:"..color)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user