forked from Sokomine/yl_speak_up
#10 fix crash in access check
This commit is contained in:
parent
6cadbd9b65
commit
b4a8ae893f
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user