mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-22 20:43:43 +01:00
Shields: Fix positional sound effects
This commit is contained in:
parent
4210cafff3
commit
cc6fff2b04
@ -7,9 +7,8 @@ local function play_sound_effect(player, name)
|
|||||||
if not disable_sounds and player then
|
if not disable_sounds and player then
|
||||||
local pos = player:getpos()
|
local pos = player:getpos()
|
||||||
if pos then
|
if pos then
|
||||||
minetest.sound_play({
|
minetest.sound_play(name, {
|
||||||
pos = pos,
|
pos = pos,
|
||||||
name = name,
|
|
||||||
max_hear_distance = 10,
|
max_hear_distance = 10,
|
||||||
gain = 0.5,
|
gain = 0.5,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user