diff options
author | Dorian Wouters <elementw@openmailbox.org> | 2016-09-04 03:05:52 +0200 |
---|---|---|
committer | ShadowNinja <ShadowNinja@users.noreply.github.com> | 2016-09-03 21:05:52 -0400 |
commit | 7cb8787bebdad6b1077f7046eddeacc9da0d2136 (patch) | |
tree | f2f700d0b608c5041ee154b9f7d0645f99bf2b0d | |
parent | 67507c75918f8a60ad218cdcb69cc8d39e4a55ed (diff) |
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.
-rw-r--r-- | internal.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal.lua b/internal.lua index 05a31cd..bf7e92c 100644 --- a/internal.lua +++ b/internal.lua @@ -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 |