mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2025-08-02 23:30:18 +02:00
Bugfix: shields crash with nil method, fixes #102
This commit is contained in:
@ -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,
|
||||||
|
Reference in New Issue
Block a user