From 39c02a99de4c00bae20d20534aa80d8aaa37eb88 Mon Sep 17 00:00:00 2001 From: wsor4035 <24964441+wsor4035@users.noreply.github.com> Date: Mon, 25 Apr 2022 21:14:25 -0400 Subject: [PATCH] add bleeding edge repixture support (#4) --- .luacheckrc | 2 +- init.lua | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.luacheckrc b/.luacheckrc index 1bd7ddb..0d32191 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -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", } \ No newline at end of file diff --git a/init.lua b/init.lua index a7db7dc..13396c3 100644 --- a/init.lua +++ b/init.lua @@ -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