Fix runClient/Server tasks not always including the mod
parent
b315d9a553
commit
927c3f22cc
|
@ -316,6 +316,7 @@ public class AbstractPlugin implements Plugin<Project> {
|
||||||
remapJarTask.getInput().set(jarTask.getArchivePath());
|
remapJarTask.getInput().set(jarTask.getArchivePath());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extension.addUnmappedMod(jarTask.getArchivePath().toPath());
|
||||||
remapJarTask.getAddNestedDependencies().set(true);
|
remapJarTask.getAddNestedDependencies().set(true);
|
||||||
|
|
||||||
remapJarTask.doLast(task -> project1.getArtifacts().add("archives", remapJarTask.getArchivePath()));
|
remapJarTask.doLast(task -> project1.getArtifacts().add("archives", remapJarTask.getArchivePath()));
|
||||||
|
|
|
@ -124,8 +124,6 @@ public class RemapJarTask extends Jar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extension.addUnmappedMod(input);
|
|
||||||
|
|
||||||
/*try {
|
/*try {
|
||||||
if (modJar.exists()) {
|
if (modJar.exists()) {
|
||||||
Files.move(modJar, modJarUnmappedCopy);
|
Files.move(modJar, modJarUnmappedCopy);
|
||||||
|
|
Loading…
Reference in New Issue