Simplify RemapJarTask remapRefmap

This commit is contained in:
shedaniel
2021-04-13 16:30:44 +08:00
parent 897806572e
commit 58d1b066bd
5 changed files with 24 additions and 100 deletions

View File

@@ -95,7 +95,7 @@ public class RemapConfiguration {
// TODO this might be wrong?
project.getTasks().withType(RemapJarTask.class).forEach(task -> {
if (task.getAddNestedDependencies().getOrElse(false)) {
if (!extension.isForge() && task.getAddNestedDependencies().getOrElse(false)) {
NestedDependencyProvider.getRequiredTasks(project).forEach(task::dependsOn);
}
});