Add a way to disable IDE run config auto generation. (Only applys when importing with idea's gradle tools)

dev/0.11
modmuss50 2018-12-19 23:05:19 +00:00
parent e93292564d
commit 278c8d2401
2 changed files with 5 additions and 1 deletions

View File

@ -224,7 +224,10 @@ public class AbstractPlugin implements Plugin<Project> {
project1.getTasks().getByName("idea").finalizedBy(project1.getTasks().getByName("genIdeaWorkspace"));
project1.getTasks().getByName("eclipse").finalizedBy(project1.getTasks().getByName("genEclipseRuns"));
SetupIntelijRunConfigs.setup(project1);
if(extension.autoGenIDERuns){
SetupIntelijRunConfigs.setup(project1);
}
//Enables the default mod remapper
if (extension.remapMod) {

View File

@ -42,6 +42,7 @@ public class LoomGradleExtension {
public String runDir = "run";
public String refmapName;
public boolean remapMod = true;
public boolean autoGenIDERuns = true;
private List<File> unmappedModsBuilt = new ArrayList<>();