From 1bab0c5b74a81dbda9ff52cc15223a455ba9d1d1 Mon Sep 17 00:00:00 2001 From: crabman77 Date: Wed, 1 Apr 2015 01:56:03 +0200 Subject: [PATCH] fix mores bug fix wrong param adapt to new soundset version due to conflict name with death_messages --- mods/death_messages/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/death_messages/init.lua b/mods/death_messages/init.lua index 85dbaba3..5aa0194b 100755 --- a/mods/death_messages/init.lua +++ b/mods/death_messages/init.lua @@ -12,7 +12,7 @@ local messages = {} -- Fill this table with sounds local sounds = { - [1] = "death_messages_death_1.ogg", + [1] = "death_messages_death_1", } -- Lava death messages @@ -83,7 +83,7 @@ if RANDOM_MESSAGES == true then else minetest.chat_send_all(player_name .. messages.other[math.random(1,#messages.other)] ) end - minetest.sound_play({name = sounds[math.random(1,#messages.other)],gain=0.5*sounds.get_gain(player:get_player_name(),"other")}) + minetest.sound_play({name = sounds[math.random(1,#sounds)],gain=0.5*soundset.get_gain(player:get_player_name(),"other")}) end) else @@ -106,7 +106,7 @@ else else minetest.chat_send_all(player_name .. " died.") end - minetest.sound_play({name = sounds[math.random(1,#messages.other)],gain=0.5*sounds.get_gain(player:get_player_name(),"other")}) + minetest.sound_play({name = sounds[math.random(1,#sounds)],gain=0.5*soundset.get_gain(player:get_player_name(),"other")}) end) end