1
0
mirror of https://github.com/minetest-mods/3d_armor.git synced 2024-12-26 18:50:40 +01:00

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

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,