Proper mod depending

This commit is contained in:
shedaniel
2020-12-27 13:02:10 +08:00
parent 4b93054ddb
commit 6647f77d95
9 changed files with 110 additions and 70 deletions

View File

@@ -178,6 +178,9 @@ public class SourceRemapper {
m.getClassPath().add(extension.getMinecraftMappedProvider().getMappedJar().toPath());
m.getClassPath().add(extension.getMinecraftMappedProvider().getIntermediaryJar().toPath());
if (extension.isForge()) {
m.getClassPath().add(extension.getMinecraftMappedProvider().getSrgJar().toPath());
}
Dependency annotationDependency = extension.getDependencyManager().getProvider(LaunchProvider.class).annotationDependency;
Set<File> files = project.getConfigurations().getByName("compileOnly")