mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-15 14:56:05 -04:00
Update MultiplayerManager.java
更新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传值了
This commit is contained in:
parent
c697413554
commit
13d5e5e6af
@ -60,8 +60,8 @@ import static org.jackhuang.hmcl.util.Logging.LOG;
|
|||||||
* Cato Management.
|
* Cato Management.
|
||||||
*/
|
*/
|
||||||
public final class MultiplayerManager {
|
public final class MultiplayerManager {
|
||||||
static final String CATO_VERSION = "1.2.0-202112171527";
|
static final String CATO_VERSION = "1.2.1-1642413526";
|
||||||
private static final String CATO_DOWNLOAD_URL = "https://gitcode.net/huanghongxun1/ioi_bin/-/raw/3.5.3/client/";
|
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_HASH_URL = CATO_DOWNLOAD_URL + "cato-all-files.sha1";
|
||||||
private static final String CATO_PATH = getCatoPath();
|
private static final String CATO_PATH = getCatoPath();
|
||||||
public static final int CATO_AGREEMENT_VERSION = 2;
|
public static final int CATO_AGREEMENT_VERSION = 2;
|
||||||
@ -133,7 +133,7 @@ public final class MultiplayerManager {
|
|||||||
throw e;
|
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()
|
Process process = new ProcessBuilder()
|
||||||
.command(commands)
|
.command(commands)
|
||||||
.start();
|
.start();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user