#10 fix crash in access check

This commit is contained in:
Sokomine 2022-04-12 03:17:43 +02:00
parent 6cadbd9b65
commit b4a8ae893f

View File

@ -491,7 +491,8 @@ yl_speak_up.may_edit_npc = function(player, n_id)
and minetest.check_player_privs(player, {npc_talk_owner=true}))
or minetest.check_player_privs(player, {npc_talk_master=true})
or minetest.check_player_privs(player, {npc_master=true})
or yl_speak_up.speak_to[pname].may_edit_this_npc)
or (yl_speak_up.speak_to[pname]
and yl_speak_up.speak_to[pname].may_edit_this_npc))
end