npc_talk_owner priv is still required even for players added to the list of allowed editors

This commit is contained in:
Sokomine 2021-07-26 19:41:35 +02:00
parent 430cbd65bb
commit ab87304ed2

View File

@ -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