fix provider crash

dev/0.11
asie 2019-07-24 23:52:34 +02:00
parent 8d05cba5a9
commit 3435447a77
2 changed files with 2 additions and 2 deletions

View File

@ -326,7 +326,7 @@ public class AbstractPlugin implements Plugin<Project> {
for (Map.Entry<Project, Set<Task>> entry : taskMap.entrySet()) { for (Map.Entry<Project, Set<Task>> entry : taskMap.entrySet()) {
Set<Task> taskSet = entry.getValue(); Set<Task> taskSet = entry.getValue();
for (Task task : taskSet) { for (Task task : taskSet) {
if (task instanceof RemapJarTask && ((RemapJarTask) task).getAddNestedDependencies().get()) { if (task instanceof RemapJarTask && ((RemapJarTask) task).getAddNestedDependencies().getOrElse(false)) {
//Run all the sub project remap jars tasks before the root projects jar, this is to allow us to include projects //Run all the sub project remap jars tasks before the root projects jar, this is to allow us to include projects
NestedJars.getRequiredTasks(project1).forEach(task::dependsOn); NestedJars.getRequiredTasks(project1).forEach(task::dependsOn);
} }

View File

@ -118,7 +118,7 @@ public class RemapJarTask extends Jar {
project.getLogger().debug("Transformed mixin reference maps in output JAR!"); project.getLogger().debug("Transformed mixin reference maps in output JAR!");
} }
if (getAddNestedDependencies().get()) { if (getAddNestedDependencies().getOrElse(false)) {
if (NestedJars.addNestedJars(project, output)) { if (NestedJars.addNestedJars(project, output)) {
project.getLogger().debug("Added nested jar paths to mod json"); project.getLogger().debug("Added nested jar paths to mod json");
} }