Fix `player_exists` assert case
parent
6819eca78e
commit
0fcac9ba09
|
@ -1,6 +1,9 @@
|
||||||
local S = areas.S
|
local S = areas.S
|
||||||
|
|
||||||
function areas:player_exists(name)
|
function areas:player_exists(name)
|
||||||
|
if type(name) ~= "string" then
|
||||||
|
return false
|
||||||
|
end
|
||||||
return minetest.get_auth_handler().get_auth(name) ~= nil
|
return minetest.get_auth_handler().get_auth(name) ~= nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue