Fix calls to check_player_privs with player name instead of player userdata

Fixes #357
This commit is contained in:
frodon1
2017-02-27 21:31:21 +01:00
committed by Gilles DAVID
parent c05378f20f
commit d18bee7fa0
3 changed files with 19 additions and 15 deletions

View File

@ -52,12 +52,12 @@ minetest.register_node("inbox:empty", {
minetest.check_player_privs(player, "protection_bypass") and
clicker:get_player_control().aux1 then
minetest.show_formspec(
clicker:get_player_name(),
player,
"inbox:mailbox",
inbox.get_inbox_formspec(pos))
else
minetest.show_formspec(
clicker:get_player_name(),
player,
"inbox:mailbox",
inbox.get_inbox_insert_formspec(pos))
end