From ab87304ed282d509cff5f91337339d625c5d0ca6 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Mon, 26 Jul 2021 19:41:35 +0200 Subject: [PATCH] npc_talk_owner priv is still required even for players added to the list of allowed editors --- functions.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions.lua b/functions.lua index b895152..a40a288 100644 --- a/functions.lua +++ b/functions.lua @@ -1838,7 +1838,8 @@ function yl_speak_up.talk(self, clicker) -- is this player explicitly allowed to edit this npc? if(yl_speak_up.speak_to[pname].dialog and yl_speak_up.speak_to[pname].dialog.n_may_edit - and yl_speak_up.speak_to[pname].dialog.n_may_edit[pname] ) then + and yl_speak_up.speak_to[pname].dialog.n_may_edit[pname] + and minetest.check_player_privs(clicker, {npc_talk_owner=true})) then yl_speak_up.speak_to[pname].may_edit_this_npc = true end