Don't use auth_table, use get_auth_handler().get_auth instead
No guarantee is made auth_table contains auth entries or even exists. Using this table directly is incompatible with auth handlers that don't cache auth entries (e.g. when they are stored in an SQL database supposed to be concurrently accessed and modified).
This commit is contained in:
parent
67507c7591
commit
2218f34c4e
|
@ -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