set meta "ext" flag when converting old nodes

This commit is contained in:
Vanessa Ezekowitz 2017-02-25 01:02:51 -05:00
parent bc9192a847
commit 0de4732f43
2 changed files with 5 additions and 0 deletions

View File

@ -164,6 +164,7 @@ minetest.register_lbm({
minetest.set_node(pos, { name = newname, param2 = paletteidx })
local meta = minetest.get_meta(pos)
meta:set_string("dye", "unifieddyes:"..color)
meta:set_string("palette", "ext")
end
})

View File

@ -642,6 +642,10 @@ minetest.register_lbm({
param2 = paletteidx
end
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)