mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-03-28 15:20:47 +01:00
fix crash due to bad args to function
This commit is contained in:
parent
833327d971
commit
6b78fe19dd
@ -145,7 +145,7 @@ function _doors.door_toggle(pos, clicker)
|
|||||||
state = tonumber(state)
|
state = tonumber(state)
|
||||||
end
|
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")
|
local owner = meta:get_string("doors_owner")
|
||||||
if owner ~= "" then
|
if owner ~= "" then
|
||||||
if clicker:get_player_name() ~= owner then
|
if clicker:get_player_name() ~= owner then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user