fix the discovery of mods in the mods folder
All checks were successful
Publish to snapshot maven / build (push) Successful in 16s

This commit is contained in:
moehreag 2024-06-08 11:02:41 +02:00
parent 9eabb5c59d
commit e13683d215

View file

@ -18,7 +18,7 @@ public class Discovery {
@Override @Override
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException { public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {
if (directoryFilter.test(dir)) { if (dir.equals(start) || directoryFilter.test(dir)) {
return super.preVisitDirectory(dir, attrs); return super.preVisitDirectory(dir, attrs);
} }
return FileVisitResult.SKIP_SUBTREE; return FileVisitResult.SKIP_SUBTREE;