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:
parent
833327d971
commit
6b78fe19dd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user