Replace deprecated getpos call

This commit is contained in:
stujones11
2019-03-05 19:40:54 +00:00
parent be9579a365
commit 3fe7dd2249
4 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@ local disable_sounds = minetest.settings:get_bool("shields_disable_sounds")
local use_moreores = minetest.get_modpath("moreores")
local function play_sound_effect(player, name)
if not disable_sounds and player then
local pos = player:getpos()
local pos = player:get_pos()
if pos then
minetest.sound_play(name, {
pos = pos,