forked from minetest-mods/unifiedbricks
set ext flag when converting old nodes
This commit is contained in:
parent
140a315725
commit
5b776c1b9c
10
init.lua
10
init.lua
|
@ -317,17 +317,15 @@ minetest.register_lbm({
|
|||
end
|
||||
|
||||
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
|
||||
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
|
||||
minetest.set_node(pos, { name = "unifiedbricks:clayblock", param2 = paletteidx })
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("dye", "unifieddyes:"..color1)
|
||||
end
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("dye", "unifieddyes:"..color1)
|
||||
meta:set_string("palette", "ext")
|
||||
end
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user