forked from your-land-mirror/yl_speak_up
#25 / your-land/bugtracker#6618 Fixes crash when using protection rune on NPC
This commit is contained in:
parent
1323f3d8fc
commit
3d21489d49
@ -50,6 +50,7 @@ function yl_speak_up.do_mobs_on_rightclick(self, clicker)
|
|||||||
-- protect npc with mobs:protector
|
-- protect npc with mobs:protector
|
||||||
if mobs:protect(self, clicker) then
|
if mobs:protect(self, clicker) then
|
||||||
if(self.yl_speak_up) then
|
if(self.yl_speak_up) then
|
||||||
|
local pos = self.object:get_pos()
|
||||||
minetest.log("action","[MOD] yl_speak_up "..
|
minetest.log("action","[MOD] yl_speak_up "..
|
||||||
" NPC n_"..tostring(self.yl_speak_up.id)..
|
" NPC n_"..tostring(self.yl_speak_up.id)..
|
||||||
" named "..tostring(self.yl_speak_up.npc_name)..
|
" named "..tostring(self.yl_speak_up.npc_name)..
|
||||||
|
Loading…
Reference in New Issue
Block a user