From 7cb8787bebdad6b1077f7046eddeacc9da0d2136 Mon Sep 17 00:00:00 2001 From: Dorian Wouters Date: Sun, 4 Sep 2016 03:05:52 +0200 Subject: [PATCH] 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. --- internal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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