Bugfix: shields crash with nil method, fixes #102

This commit is contained in:
stujones11 2017-04-08 22:28:42 +01:00
parent 0ec7858937
commit 5508a26dbf
1 changed files with 1 additions and 1 deletions

View File

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