From 2218f34c4ee566a12c49f7de44f071a3e0b7d1e2 Mon Sep 17 00:00:00 2001 From: Dorian Wouters Date: Tue, 23 Aug 2016 14:31:59 +0200 Subject: [PATCH] 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). --- 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