From 3894e989881fca649b511a3020e11d203809cc52 Mon Sep 17 00:00:00 2001 From: sys4-fr Date: Sat, 9 Dec 2017 23:59:45 +0100 Subject: [PATCH] Remove unneeded soundset dependencies --- mods/death_messages/depends.txt | 1 - mods/death_messages/init.lua | 12 ++++++++---- mods/returnmirror/depends.txt | 1 - 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/mods/death_messages/depends.txt b/mods/death_messages/depends.txt index 4b7ff57c..e69de29b 100755 --- a/mods/death_messages/depends.txt +++ b/mods/death_messages/depends.txt @@ -1 +0,0 @@ -soundset diff --git a/mods/death_messages/init.lua b/mods/death_messages/init.lua index 4e94acf0..088e8a52 100755 --- a/mods/death_messages/init.lua +++ b/mods/death_messages/init.lua @@ -166,7 +166,8 @@ local function sound_play_all(dead) for _, p in ipairs(minetest.get_connected_players()) do local player_name = p:get_player_name() if player_name and player_name ~= dead then - minetest.sound_play("death_messages_people_1",{to_player=player_name, gain=soundset.get_gain(player_name,"other")}) + -- minetest.sound_play("death_messages_people_1",{to_player=player_name, gain=soundset.get_gain(player_name,"other")}) + minetest.sound_play("death_messages_people_1",{to_player=player_name, gain=1}) end end end @@ -183,7 +184,8 @@ minetest.register_on_punchplayer(function(player, hitter, time, death_message = string.format(messages.monsters_whacking[math.random(1, #messages.monsters_whacking)], player_name, entity_name, player_name, entity_name) end broadcast_death(death_message) - minetest.sound_play(sounds[math.random(1,#sounds)],{to_player=player:get_player_name(),gain=soundset.get_gain(player:get_player_name(),"other")}) + -- minetest.sound_play(sounds[math.random(1,#sounds)],{to_player=player:get_player_name(),gain=soundset.get_gain(player:get_player_name(),"other")}) + minetest.sound_play(sounds[math.random(1,#sounds)],{to_player=player:get_player_name(),gain=1}) sound_play_all(player:get_player_name()) whacked[player_name] = true end @@ -233,7 +235,8 @@ if RANDOM_MESSAGES == true then -- Actually tell something death_message = string.format(death_message, player_name, player_name) broadcast_death(death_message) - minetest.sound_play(sounds[math.random(1,#sounds)],{to_player=player_name,gain=soundset.get_gain(player_name, "other")}) + -- minetest.sound_play(sounds[math.random(1,#sounds)],{to_player=player_name,gain=soundset.get_gain(player_name, "other")}) + minetest.sound_play(sounds[math.random(1,#sounds)],{to_player=player_name,gain=1}) sound_play_all(player_name) whacked[player_name] = true end @@ -262,7 +265,8 @@ else minetest.chat_send_all(player_name .. " died.") end end - minetest.sound_play(sounds[math.random(1,#sounds)],{to_player=player:get_player_name(),gain=soundset.get_gain(player:get_player_name(),"other")}) + -- minetest.sound_play(sounds[math.random(1,#sounds)],{to_player=player:get_player_name(),gain=soundset.get_gain(player:get_player_name(),"other")}) + minetest.sound_play(sounds[math.random(1,#sounds)],{to_player=player:get_player_name(),gain=1}) sound_play_all(player:get_player_name()) end) end diff --git a/mods/returnmirror/depends.txt b/mods/returnmirror/depends.txt index ba5dc54a..309189fb 100755 --- a/mods/returnmirror/depends.txt +++ b/mods/returnmirror/depends.txt @@ -1,2 +1 @@ -soundset mana?