set ext flag when converting old nodes

This commit is contained in:
Vanessa Ezekowitz 2017-02-25 01:05:01 -05:00
parent 140a315725
commit 5b776c1b9c

@ -317,17 +317,15 @@ minetest.register_lbm({
end end
minetest.set_node(pos, { name = "unifiedbricks:brickblock_multicolor_"..shade, param2 = newpalette }) minetest.set_node(pos, { name = "unifiedbricks:brickblock_multicolor_"..shade, param2 = newpalette })
local meta = minetest.get_meta(pos)
meta:set_string("dye", "unifieddyes:"..color1)
elseif string.find(type, "brickblock") then elseif string.find(type, "brickblock") then
minetest.set_node(pos, { name = "unifiedbricks:brickblock", param2 = paletteidx }) minetest.set_node(pos, { name = "unifiedbricks:brickblock", param2 = paletteidx })
local meta = minetest.get_meta(pos)
meta:set_string("dye", "unifieddyes:"..color1)
elseif string.find(type, "clayblock") then elseif string.find(type, "clayblock") then
minetest.set_node(pos, { name = "unifiedbricks:clayblock", param2 = paletteidx }) minetest.set_node(pos, { name = "unifiedbricks:clayblock", param2 = paletteidx })
end
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
meta:set_string("dye", "unifieddyes:"..color1) meta:set_string("dye", "unifieddyes:"..color1)
end meta:set_string("palette", "ext")
end end
}) })