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_MC_DIR", repository.getRunDirectory(version.getId()).getAbsolutePath())
.replace("$INST_JAVA", options.getJava().getBinary().toString()); .replace("$INST_JAVA", options.getJava().getBinary().toString());
new ProcessBuilder(preLaunchCommand) new ProcessBuilder(StringUtils.tokenize(preLaunchCommand))
.directory(runDirectory).start().waitFor(); .directory(runDirectory).start().waitFor();
} }