1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-10 12:30:17 +01:00

fix crash due to bad args to function

This commit is contained in:
crabman77 2016-04-16 21:39:01 +02:00
parent 833327d971
commit 6b78fe19dd

View File

@ -145,7 +145,7 @@ function _doors.door_toggle(pos, clicker)
state = tonumber(state)
end
if clicker and not minetest.check_player_privs(clicker, "protection_bypass") then
if clicker and not minetest.check_player_privs(clicker:get_player_name(), {protection_bypass = true}) then
local owner = meta:get_string("doors_owner")
if owner ~= "" then
if clicker:get_player_name() ~= owner then