mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-25 14:03:43 +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 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,
|
||||
|
Loading…
Reference in New Issue
Block a user