mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-01-12 14:14:52 +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;
|
||||
}
|
||||
|
||||
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()
|
||||
.command(commands)
|
||||
.start();
|
||||
|
Loading…
Reference in New Issue
Block a user