Don't use audio_lib deprecate function
This commit is contained in:
parent
e742b5b9f2
commit
68207ca8f9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user