mirror of
https://github.com/minetest-mods/unifiedbricks.git
synced 2024-11-29 19:03:50 +01:00
set ext flag when converting old nodes
This commit is contained in:
parent
140a315725
commit
5b776c1b9c
8
init.lua
8
init.lua
@ -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
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user