Small tweaks

dev/0.11
modmuss50 2018-06-18 16:41:50 +01:00
parent 527000ed24
commit cc23189335
No known key found for this signature in database
GPG Key ID: 773D17BE8BF49C82
3 changed files with 7 additions and 7 deletions

View File

@ -36,9 +36,9 @@ public class OpenGradlePlugin extends AbstractPlugin {
makeTask("download", DownloadTask.class);
makeTask("mergeJars", MergeJarsTask.class).dependsOn("download");
makeTask("mapJars", MapJarsTask.class).dependsOn("mergeJars");
makeTask("processMods", ProcessModsTask.class).dependsOn("mapJars");
makeTask("setup", DefaultTask.class).dependsOn("processMods").setGroup("openmodloader");
makeTask("processMods", ProcessModsTask.class).dependsOn("mergeJars");
makeTask("mapJars", MapJarsTask.class).dependsOn("processMods");
makeTask("setup", DefaultTask.class).dependsOn("mapJars").setGroup("openmodloader");
makeTask("extractNatives", ExtractNativesTask.class).dependsOn("download");
makeTask("genIdeaWorkspace", GenIdeaProjectTask.class).dependsOn("idea").setGroup("ide");

View File

@ -252,7 +252,7 @@ public class AbstractPlugin implements Plugin<Project> {
}
});
project.getTasks().getByName("build").doLast(task -> {
project.getTasks().getByName("jar").doLast(task -> {
project.getLogger().lifecycle(":remapping mods");
LoomGradleExtension extension = project.getExtensions().getByType(LoomGradleExtension.class);
try {

View File

@ -40,13 +40,13 @@ public class PreBakeMixins {
String[] args = new String[mods.size() + 4];
args[0] = "-m";
args[1] = Constants.MAPPINGS_TINY.get(extension).getAbsolutePath();
args[2] = Constants.MINECRAFT_MAPPED_JAR.get(extension).getAbsolutePath();
args[3] = Constants.MINECRAFT_FINAL_JAR.get(extension).getAbsolutePath();
args[2] = Constants.MINECRAFT_MERGED_JAR.get(extension).getAbsolutePath();
args[3] = Constants.MINECRAFT_MAPPED_JAR.get(extension).getAbsolutePath();
for (int i = 0; i < mods.size(); i++) {
args[i + 4] = mods.get(i).getAbsolutePath();
}
project.getLogger().lifecycle(":preBaking mixins");
ProcessModsTask.addFile(Constants.MINECRAFT_MAPPED_JAR.get(extension), this);
ProcessModsTask.addFile(Constants.MINECRAFT_MERGED_JAR.get(extension), this);
MixinPrebaker.main(args);
}