From 5508a26dbf1b940fa4f1df7d24c59bc6662f2c25 Mon Sep 17 00:00:00 2001 From: stujones11 Date: Sat, 8 Apr 2017 22:28:42 +0100 Subject: [PATCH] Bugfix: shields crash with nil method, fixes #102 --- shields/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shields/init.lua b/shields/init.lua index 572b584..0a40eaa 100644 --- a/shields/init.lua +++ b/shields/init.lua @@ -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,