summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDorian Wouters <elementw@openmailbox.org>2016-09-04 03:05:52 +0200
committerShadowNinja <ShadowNinja@users.noreply.github.com>2016-09-03 21:05:52 -0400
commit7cb8787bebdad6b1077f7046eddeacc9da0d2136 (patch)
treef2f700d0b608c5041ee154b9f7d0645f99bf2b0d
parent67507c75918f8a60ad218cdcb69cc8d39e4a55ed (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.lua2
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