Skip to content

Commit

Permalink
修复Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
0XPYEX0 committed Sep 7, 2022
1 parent 4e04330 commit d96e14c
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void enable() {

getLogger().info(" ");

if (getInstance().getAPI().getServerSoftware().startsWith("Unknown-")) {
if (getAPI().getServerSoftware().startsWith("Unknown-")) {
getLogger().error("无法自动解析服务端版本,使用默认版本信息",
"Failed to get Server Version... Using default version info");
}
Expand Down Expand Up @@ -61,16 +61,15 @@ public void enable() {
getLogger().severe(" ");
return;
}
getLogger().info("成功加载配置文件");

getLogger().info("正在尝试访问bStats");
getAPI().runTaskAsync(getAPI()::register_bStats);

getLogger().info("正在检查更新");
getAPI().runTaskAsync(getAPI()::checkUpdate);

FlyWithFood.getInstance().getAPI().startCheck();

FlyWithFood.getLogger().info("已成功加载");
getLogger().info("已成功加载");
}

public static FWFLogger getLogger() {
Expand All @@ -82,5 +81,7 @@ public static void disable() {
getInstance().getAPI().stopTasks();
getLogger().info("已取消所有任务");
getLogger().info("已卸载");

INSTANCE = null;
}
}

0 comments on commit d96e14c

Please sign in to comment.