add bleeding edge repixture support (#4)

This commit is contained in:
wsor4035 2022-04-25 21:14:25 -04:00 committed by GitHub
parent 6956e49e77
commit 39c02a99de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 1 deletions

View File

@ -1,5 +1,5 @@
read_globals = {
"minetest", "mcl_sounds", "default", "ks_sounds",
"nodes_nature", "fl_stone", "fl_topsoil", "fl_trees",
"hades_sounds",
"hades_sounds", "rp_sounds",
}

View File

@ -58,6 +58,8 @@ function sound_api.node_sound_default(table)
return nodes_nature.node_sound_default(table)
elseif minetest.get_modpath("hades_sounds") then
return hades_sounds.node_sound_defaults(table)
elseif minetest.get_modpath("rp_sounds") then
return rp_sounds.node_sound_defaults(table)
else
return table
end
@ -74,6 +76,8 @@ function sound_api.node_sound_stone_defaults(table)
return fl_stone.sounds.stone(table)
elseif minetest.get_modpath("hades_sounds") then
return hades_sounds.node_sound_stone_defaults(table)
elseif minetest.get_modpath("rp_sounds") then
return rp_sounds.node_sound_stone_defaults(table)
else
return table
end
@ -91,6 +95,8 @@ function sound_api.node_sound_dirt_defaults(table)
return fl_topsoil.sounds.grass(table)
elseif minetest.get_modpath("hades_sounds") then
return hades_sounds.node_sound_dirt_defaults(table)
elseif minetest.get_modpath("rp_sounds") then
return rp_sounds.node_sound_dirt_defaults(table)
else
return table
end
@ -116,6 +122,8 @@ function sound_api.node_sound_sand_defaults(table)
return fl_stone.sounds.sand(table)
elseif minetest.get_modpath("hades_sounds") then
return hades_sounds.node_sound_sand_defaults(table)
elseif minetest.get_modpath("rp_sounds") then
return rp_sounds.node_sound_sand_defaults(table)
else
return table
end
@ -151,6 +159,8 @@ function sound_api.node_sound_wood_defaults(table)
return fl_trees.sounds.wood(table)
elseif minetest.get_modpath("hades_sounds") then
return hades_sounds.node_sound_wood_defaults(table)
elseif minetest.get_modpath("rp_sounds") then
return rp_sounds.node_sound_wood_defaults(table)
else
return table
end
@ -167,6 +177,8 @@ function sound_api.node_sound_leaves_defaults(table)
return nodes_nature.node_sound_leaves_defaults(table)
elseif minetest.get_modpath("hades_sounds") then
return hades_sounds.node_sound_leaves_defaults(table)
elseif minetest.get_modpath("rp_sounds") then
return rp_sounds.node_sound_leaves_defaults(table)
else
return table
end
@ -181,6 +193,8 @@ function sound_api.node_sound_glass_defaults(table)
return nodes_nature.node_sound_glass_defaults(table)
elseif minetest.get_modpath("hades_sounds") then
return hades_sounds.node_sound_glass_defaults(table)
elseif minetest.get_modpath("rp_sounds") then
return rp_sounds.node_sound_glass_defaults(table)
else
return table
end
@ -225,6 +239,8 @@ function sound_api.node_sound_water_defaults(table)
return nodes_nature.node_sound_water_defaults(table)
elseif minetest.get_modpath("hades_sounds") then
return hades_sounds.node_sound_water_defaults(table)
elseif minetest.get_modpath("rp_sounds") then
return rp_sounds.node_sound_water_defaults(table)
else
return table
end
@ -241,6 +257,9 @@ function sound_api.node_sound_lava_defaults(table)
return nodes_nature.node_sound_water_defaults(table)
elseif minetest.get_modpath("hades_sounds") then
return hades_sounds.node_sound_lava_defaults(table)
--s/lava/water
elseif minetest.get_modpath("rp_sounds") then
return rp_sounds.node_sound_water_defaults(table)
else
return table
end
@ -257,6 +276,8 @@ function sound_api.node_sound_snow_defaults(table)
return nodes_nature.node_sound_snow_defaults(table)
elseif minetest.get_modpath("fl_topsoil") then
return fl_topsoil.sounds.snow(table)
elseif minetest.get_modpath("rp_sounds") then
return rp_sounds.node_sound_snow_defaults(table)
else
return table
end