Add configured compat

[no changelog]
This commit is contained in:
Linnea Gräf
2024-08-31 11:59:47 +02:00
parent d2f240ff0c
commit 816f80f862
19 changed files with 366 additions and 101 deletions

View File

@@ -146,7 +146,9 @@ public class AutoDiscoveryPlugin {
*/
private void walkDir(Path classRoot) {
System.out.println("Trying to find mixins from directory");
try (Stream<Path> classes = Files.walk(classRoot.resolve(getMixinBaseDir()))) {
var path = classRoot.resolve(getMixinBaseDir());
if (!Files.exists(path)) return;
try (Stream<Path> classes = Files.walk(path)) {
classes.map(it -> classRoot.relativize(it).toString())
.forEach(this::tryAddMixinClass);
} catch (IOException e) {