mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-01-24 14:34:15 +08:00
fix(multiplayer): incorrect cato arguments.
This commit is contained in:
parent
65d4c9c8ee
commit
d28723916d
@ -133,7 +133,9 @@ public final class MultiplayerManager {
|
|||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] commands = new String[]{exe.toString(), "-auth.token", token};
|
String[] commands = StringUtils.isBlank(token)
|
||||||
|
? new String[]{exe.toString()}
|
||||||
|
: new String[]{exe.toString(), "-auth.token", token};
|
||||||
Process process = new ProcessBuilder()
|
Process process = new ProcessBuilder()
|
||||||
.command(commands)
|
.command(commands)
|
||||||
.start();
|
.start();
|
||||||
|
Loading…
Reference in New Issue
Block a user