forked from mtcontrib/homedecor_modpack
set meta "ext" flag when converting old nodes
This commit is contained in:
parent
bc9192a847
commit
0de4732f43
|
@ -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
|
||||
})
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user