Use get_auth_handler().get_auth() instead of auth_table
minetest.auth_table is an implementation detail of the default auth handler. No guarantee is made that it even exists and using this table directly is incompatible with custom auth handlers. Instead, use the proper auth handler API.
This commit is contained in:
parent
67507c7591
commit
7cb8787beb
|
@ -1,6 +1,6 @@
|
|||
|
||||
function areas:player_exists(name)
|
||||
return minetest.auth_table[name] ~= nil
|
||||
return minetest.get_auth_handler().get_auth(name) ~= nil
|
||||
end
|
||||
|
||||
-- Save the areas table to a file
|
||||
|
|
Loading…
Reference in New Issue
Block a user