1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 00:20:17 +01:00

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

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