provide right id for talk check

This commit is contained in:
Sokomine 2021-05-10 20:05:56 +02:00
parent c14fd79c48
commit c271a3480e

View File

@ -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]"..