Fix source remapping not having the full classpath

dev/0.11
modmuss50 2020-06-01 12:25:10 +01:00
parent f673579da8
commit f529c6e01e
1 changed files with 6 additions and 0 deletions

View File

@ -208,6 +208,12 @@ public class SourceRemapper {
for (File file : project.getConfigurations().getByName("compileClasspath").getFiles()) { for (File file : project.getConfigurations().getByName("compileClasspath").getFiles()) {
m.getClassPath().add(file.toPath()); m.getClassPath().add(file.toPath());
} }
} else {
for (RemappedConfigurationEntry entry : Constants.MOD_COMPILE_ENTRIES) {
for (File inputFile : project.getConfigurations().getByName(entry.getSourceConfiguration()).getFiles()) {
m.getClassPath().add(inputFile.toPath());
}
}
} }
return m; return m;