diff --git a/src/main/java/net/fabricmc/loom/AbstractPlugin.java b/src/main/java/net/fabricmc/loom/AbstractPlugin.java index 16afa7a..71d37f4 100644 --- a/src/main/java/net/fabricmc/loom/AbstractPlugin.java +++ b/src/main/java/net/fabricmc/loom/AbstractPlugin.java @@ -316,6 +316,7 @@ public class AbstractPlugin implements Plugin { remapJarTask.getInput().set(jarTask.getArchivePath()); } + extension.addUnmappedMod(jarTask.getArchivePath().toPath()); remapJarTask.getAddNestedDependencies().set(true); remapJarTask.doLast(task -> project1.getArtifacts().add("archives", remapJarTask.getArchivePath())); diff --git a/src/main/java/net/fabricmc/loom/task/RemapJarTask.java b/src/main/java/net/fabricmc/loom/task/RemapJarTask.java index 52da787..065ed62 100644 --- a/src/main/java/net/fabricmc/loom/task/RemapJarTask.java +++ b/src/main/java/net/fabricmc/loom/task/RemapJarTask.java @@ -124,8 +124,6 @@ public class RemapJarTask extends Jar { } } - extension.addUnmappedMod(input); - /*try { if (modJar.exists()) { Files.move(modJar, modJarUnmappedCopy);