2
0
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:
huanghongxun 2020-04-12 16:52:06 +08:00
parent feb30a7349
commit 0d59e52ff9

View File

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