mirror of
https://github.com/minetest-mods/unifiedbricks.git
synced 2024-11-26 09:23:52 +01:00
get rid of old 89->256 LBM
(obsolete, and can't run anyway, UD doesn't support the old 89-color palette anymore except in split mode)
This commit is contained in:
parent
c227ceb798
commit
4ef1892dbe
20
init.lua
20
init.lua
@ -379,24 +379,4 @@ minetest.register_lbm({
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_lbm({
|
|
||||||
name = "unifiedbricks:recolor_bricks",
|
|
||||||
label = "Convert 89-color bricks to use UD extended palette",
|
|
||||||
run_at_every_load = false,
|
|
||||||
nodenames = {
|
|
||||||
"unifiedbricks:clayblock",
|
|
||||||
"unifiedbricks:brickblock",
|
|
||||||
"unifiedbricks:brickblock_multicolor_dark",
|
|
||||||
"unifiedbricks:brickblock_multicolor_medium",
|
|
||||||
"unifiedbricks:brickblock_multicolor_light",
|
|
||||||
},
|
|
||||||
action = function(pos, node)
|
|
||||||
local meta = minetest.get_meta(pos)
|
|
||||||
if meta:get_string("palette") ~= "ext" then
|
|
||||||
minetest.swap_node(pos, { name = node.name, param2 = unifieddyes.convert_classic_palette[node.param2] })
|
|
||||||
meta:set_string("palette", "ext")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
})
|
|
||||||
|
|
||||||
print("[UnifiedBricks] Loaded!")
|
print("[UnifiedBricks] Loaded!")
|
||||||
|
Loading…
Reference in New Issue
Block a user