Don't use audio_lib deprecate function

This commit is contained in:
marco_a 2024-06-20 21:08:49 +02:00
parent e742b5b9f2
commit 68207ca8f9

View File

@ -10,7 +10,7 @@ end
function weapons_lib.play_sound(sound, p_name)
if minetest.get_modpath("audio_lib") and audio_lib.is_sound_registered(sound) then
audio_lib.play_sfx(sound, {to_player = p_name})
audio_lib.play_sound(sound, {to_player = p_name})
else
minetest.sound_play(sound, {to_player = p_name})
end