Allow IDEA run configs to be generated for non-root projects (#236)

This commit is contained in:
Jonas Herzig
2020-07-26 22:05:14 +02:00
committed by GitHub
parent d7f61512b5
commit 4aa840adfe
6 changed files with 35 additions and 15 deletions

View File

@@ -58,7 +58,7 @@ public class LoomGradleExtension {
public String refmapName;
public String loaderLaunchMethod;
public boolean remapMod = true;
public boolean autoGenIDERuns = true;
public boolean autoGenIDERuns;
public String customManifest = null;
public File accessWidener = null;
public Function<String, Object> intermediaryUrl = mcVer -> "https://maven.fabricmc.net/net/fabricmc/intermediary/" + mcVer + "/intermediary-" + mcVer + "-v2.jar";
@@ -93,6 +93,7 @@ public class LoomGradleExtension {
public LoomGradleExtension(Project project) {
this.project = project;
this.autoGenIDERuns = AbstractPlugin.isRootProject(project);
this.unmappedMods = project.files();
}
@@ -222,7 +223,7 @@ public class LoomGradleExtension {
}
public File getDevLauncherConfig() {
return new File(getRootProjectPersistentCache(), "launch.cfg");
return new File(getProjectPersistentCache(), "launch.cfg");
}
@Nullable