mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 05:27:43 -05:00
Merge remote-tracking branch 'FabricMC/dev/0.12' into dev/0.12.0
This commit is contained in:
@@ -249,22 +249,30 @@ public class SourceRemapper {
|
||||
m.setGracefulClasspathChecks(true);
|
||||
m.setSourceCompatibility(Constants.MERCURY_SOURCE_VERSION);
|
||||
|
||||
final List<Path> classPath = new ArrayList<>();
|
||||
|
||||
for (File file : project.getConfigurations().getByName(Constants.Configurations.LOADER_DEPENDENCIES).getFiles()) {
|
||||
m.getClassPath().add(file.toPath());
|
||||
classPath.add(file.toPath());
|
||||
}
|
||||
|
||||
if (!toNamed) {
|
||||
for (File file : project.getConfigurations().getByName("compileClasspath").getFiles()) {
|
||||
m.getClassPath().add(file.toPath());
|
||||
classPath.add(file.toPath());
|
||||
}
|
||||
} else {
|
||||
for (RemappedConfigurationEntry entry : Constants.MOD_COMPILE_ENTRIES) {
|
||||
for (File inputFile : project.getConfigurations().getByName(entry.sourceConfiguration()).getFiles()) {
|
||||
m.getClassPath().add(inputFile.toPath());
|
||||
classPath.add(inputFile.toPath());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (Path path : classPath) {
|
||||
if (Files.exists(path)) {
|
||||
m.getClassPath().add(path);
|
||||
}
|
||||
}
|
||||
|
||||
return m;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user