1
0
鏡像自 https://github.com/minetest-mods/areas.git 已同步 2025-11-05 23:15:30 +01:00

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.
此提交包含在:
Dorian Wouters
2016-09-04 03:05:52 +02:00
提交者 ShadowNinja
父節點 67507c7591
當前提交 7cb8787beb

查看文件

@@ -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