1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 06:11:47 +02:00

fix crash due to bad args to function

remove unused variable
This commit is contained in:
2016-04-16 22:26:05 +02:00
parent 2f7b90ed02
commit 6b164a75da
2 changed files with 1 additions and 2 deletions

View File

@ -1866,7 +1866,7 @@ end
local function has_locked_chest_privilege(meta, player)
local name = ""
if player then
if minetest.check_player_privs(player, "protection_bypass") then
if minetest.check_player_privs(player:get_player_name(), {protection_bypass = true}) then
return true
end
name = player:get_player_name()