From 13d5e5e6af2d32609c2d42d25f449e368d89b2f7 Mon Sep 17 00:00:00 2001 From: kitefly <64117916+ldou123@users.noreply.github.com> Date: Sun, 23 Jan 2022 01:23:09 +0800 Subject: [PATCH] Update MultiplayerManager.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新cato版本;将String[] commands = new String[]{exe.toString(), "-auth.token", StringUtils.isBlank(token) ? "new" : token};改成String[] commands = new String[]{exe.toString(), "-auth.token", token};原因是新版cato已经取消这个now传值了 --- .../jackhuang/hmcl/ui/multiplayer/MultiplayerManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerManager.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerManager.java index 8899d38f3..cfa0f5b84 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerManager.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerManager.java @@ -60,8 +60,8 @@ import static org.jackhuang.hmcl.util.Logging.LOG; * Cato Management. */ public final class MultiplayerManager { - static final String CATO_VERSION = "1.2.0-202112171527"; - private static final String CATO_DOWNLOAD_URL = "https://gitcode.net/huanghongxun1/ioi_bin/-/raw/3.5.3/client/"; + static final String CATO_VERSION = "1.2.1-1642413526"; + private static final String CATO_DOWNLOAD_URL = "https://gitcode.net/to/cato/-/raw/master/client/"; private static final String CATO_HASH_URL = CATO_DOWNLOAD_URL + "cato-all-files.sha1"; private static final String CATO_PATH = getCatoPath(); public static final int CATO_AGREEMENT_VERSION = 2; @@ -133,7 +133,7 @@ public final class MultiplayerManager { throw e; } - String[] commands = new String[]{exe.toString(), "-client.token", StringUtils.isBlank(token) ? "new" : token}; + String[] commands = new String[]{exe.toString(), "-auth.token", token}; Process process = new ProcessBuilder() .command(commands) .start();