Make compatibility aliases for dyes

This commit is contained in:
Jude Melton-Houghton
2022-04-20 21:01:21 -04:00
parent cae6e32255
commit 00433bafe5
2 changed files with 22 additions and 12 deletions

View File

@ -23,6 +23,16 @@ if minetest.get_modpath("default") then
mesecon.steel_block_texture = "default_steel_block.png"
end
local dye_colors = {
"red", "green", "blue", "grey", "dark_grey", "yellow",
"orange", "white", "pink", "magenta", "cyan", "violet",
}
if minetest.get_modpath("dye") then
for _, color in ipairs(dye_colors) do
minetest.register_alias("mesecons_compat:dye_" .. color, "dye:" .. color)
end
end
if minetest.get_modpath("fire") then
mesecon.sound_name_fire = "fire_fire"
end