Skip to content

Commit

Permalink
Use get_auth_handler().get_auth() instead of auth_table
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ElementW authored and ShadowNinja committed Sep 4, 2016
1 parent 67507c7 commit 7cb8787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal.lua
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7cb8787

Please sign in to comment.