Shields: Fix positional sound effects

axinite
stujones11 2018-05-13 16:31:51 +01:00 committed by Peppy
parent fe3693fd99
commit dd7a710c34
1 changed files with 1 additions and 2 deletions

View File

@ -7,9 +7,8 @@ local function play_sound_effect(player, name)
if not disable_sounds and player then
local pos = player:getpos()
if pos then
minetest.sound_play({
minetest.sound_play(name, {
pos = pos,
name = name,
max_hear_distance = 10,
gain = 0.5,
})