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:
@ -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()
|
||||
|
Reference in New Issue
Block a user