From 3d21489d49da4b2abda672a86cfa6336a01fd191 Mon Sep 17 00:00:00 2001 From: AliasAlreadyTaken Date: Tue, 30 Apr 2024 19:55:58 +0200 Subject: [PATCH] #25 / your-land/bugtracker#6618 Fixes crash when using protection rune on NPC --- interface_mobs_api.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/interface_mobs_api.lua b/interface_mobs_api.lua index 68f676c..9980c75 100644 --- a/interface_mobs_api.lua +++ b/interface_mobs_api.lua @@ -50,6 +50,7 @@ function yl_speak_up.do_mobs_on_rightclick(self, clicker) -- protect npc with mobs:protector if mobs:protect(self, clicker) then if(self.yl_speak_up) then + local pos = self.object:get_pos() minetest.log("action","[MOD] yl_speak_up ".. " NPC n_"..tostring(self.yl_speak_up.id).. " named "..tostring(self.yl_speak_up.npc_name)..