mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-02-17 17:09:55 +08:00
fix: prelaunch command not tokenized
This commit is contained in:
parent
feb30a7349
commit
0d59e52ff9
@ -292,7 +292,7 @@ public class DefaultLauncher extends Launcher {
|
||||
.replace("$INST_MC_DIR", repository.getRunDirectory(version.getId()).getAbsolutePath())
|
||||
.replace("$INST_JAVA", options.getJava().getBinary().toString());
|
||||
|
||||
new ProcessBuilder(preLaunchCommand)
|
||||
new ProcessBuilder(StringUtils.tokenize(preLaunchCommand))
|
||||
.directory(runDirectory).start().waitFor();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user