fix(multiplayer): incorrect cato arguments.

This commit is contained in:
huanghongxun 2022-01-24 01:45:23 +08:00
parent 65d4c9c8ee
commit d28723916d

View File

@ -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();