Surround natives path in quotes to ensure it works with usernames with spaces.

dev/0.11
modmuss50 2019-10-22 20:09:59 +01:00
parent 7bcc6b98ff
commit 40d895095f
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ public class RunConfig {
private static void populate(Project project, LoomGradleExtension extension, RunConfig runConfig, String mode) {
runConfig.projectName = project.getName();
runConfig.runDir = "file://$PROJECT_DIR$/" + extension.runDir;
runConfig.vmArgs = "-Dfabric.development=true -Djava.library.path=" + extension.getNativesDirectory().getAbsolutePath();
runConfig.vmArgs = "-Dfabric.development=true -Djava.library.path=\"" + extension.getNativesDirectory().getAbsolutePath() + "\"";
switch (extension.getLoaderLaunchMethod()) {
case "launchwrapper":