mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-25 22:13:42 +01:00
Bugfix: shields crash with nil method, fixes #102
This commit is contained in:
parent
0ec7858937
commit
5508a26dbf
@ -5,7 +5,7 @@ end
|
|||||||
local use_moreores = minetest.get_modpath("moreores")
|
local use_moreores = minetest.get_modpath("moreores")
|
||||||
local function play_sound_effect(player, name)
|
local function play_sound_effect(player, name)
|
||||||
if player then
|
if player then
|
||||||
local pos = player:get_pos()
|
local pos = player:getpos()
|
||||||
if pos then
|
if pos then
|
||||||
minetest.sound_play({
|
minetest.sound_play({
|
||||||
pos = pos,
|
pos = pos,
|
||||||
|
Loading…
Reference in New Issue
Block a user