Merge branch 'master' into nalc-1.2

This commit is contained in:
2019-05-04 21:26:03 +02:00
9 changed files with 81 additions and 13 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,