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:
Vanessa Dannenberg 2018-09-12 18:00:00 -04:00 committed by sofar
parent c227ceb798
commit 4ef1892dbe

View File

@ -379,24 +379,4 @@ minetest.register_lbm({
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!")