mirror of
https://github.com/minetest-mods/unifiedbricks.git
synced 2024-11-26 09:23:52 +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
|
||||
|
||||
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 })
|
||||
end
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("dye", "unifieddyes:"..color1)
|
||||
end
|
||||
meta:set_string("palette", "ext")
|
||||
end
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user