Fix source remapping not having the full classpath

This commit is contained in:
modmuss50 2020-06-01 12:25:10 +01:00
parent f673579da8
commit f529c6e01e

View file

@ -208,6 +208,12 @@ public class SourceRemapper {
for (File file : project.getConfigurations().getByName("compileClasspath").getFiles()) {
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;