From 9f98df20d499be9db34e938f87c1a156fd8f99b5 Mon Sep 17 00:00:00 2001 From: Harvey_Husky Date: Mon, 24 Jul 2023 19:46:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=86=8D=E7=BC=93=E5=AD=98=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=99=A8=E7=99=BD=E5=90=8D=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/fzsd_score.sc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/fzsd_score.sc b/scripts/fzsd_score.sc index b687697..56d3f2e 100644 --- a/scripts/fzsd_score.sc +++ b/scripts/fzsd_score.sc @@ -43,7 +43,6 @@ global_current_scoreboard_list = [ 'fzsd.module.scoreboard.display.aviating_distance', 'fzsd.module.scoreboard.display.placement_count' ]; -global_server_whitelist_cache = null; __config() -> { 'scope' -> 'global', @@ -184,10 +183,7 @@ __on_player_disconnects(player, reason) -> ( // 获取服务器白名单 get_server_whitelist() -> ( - if(global_server_whitelist_cache == null, - global_server_whitelist_cache = keys(system_info('server_whitelist')); - ); - return(global_server_whitelist_cache); + return(keys(system_info('server_whitelist'))); ); // 重载配置文件