鏡像自
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.
此提交包含在:
@@ -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
|
||||
|
||||
新增問題並參考
封鎖使用者