From c271a3480ed37a60cc05c68f75afbf8b91eb0b57 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Mon, 10 May 2021 20:05:56 +0200 Subject: [PATCH] provide right id for talk check --- functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.lua b/functions.lua index df56437..be96e93 100644 --- a/functions.lua +++ b/functions.lua @@ -3114,7 +3114,7 @@ function yl_speak_up.talk(self, clicker) if not self.yl_speak_up or not self.yl_speak_up.talk or self.yl_speak_up.talk~=true then -- show a formspec to other players that this NPC is busy - if(not(yl_speak_up.may_edit_npc(clicker, self.yl_speak_up.id))) then + if(not(yl_speak_up.may_edit_npc(clicker, n_id))) then -- show a formspec so that the player knows that he may come back later minetest.show_formspec(pname, "yl_spaek_up:ignore", "size[6,2]"..