Fix ExplodedDirectoryLocator visiting non-existent paths. Closes #7203
Also, bump modlauncher to 7.0.1 to fix resources. Signed-off-by: cpw <cpw+github@weeksfamily.ca>
This commit is contained in:
parent
9051021474
commit
4ff0d246ce
1 changed files with 1 additions and 0 deletions
|
@ -92,6 +92,7 @@ public class ExplodedDirectoryLocator implements IModLocator {
|
|||
}
|
||||
|
||||
private void scanIndividualPath(final Path path, Consumer<Path> pathConsumer) {
|
||||
if (!Files.exists(path)) return;
|
||||
LOGGER.debug(SCAN, "Scanning exploded target {}", path.toString());
|
||||
try (Stream<Path> files = Files.find(path, Integer.MAX_VALUE, (p, a) -> p.getNameCount() > 0 && p.getFileName().toString().endsWith(".class"))) {
|
||||
files.forEach(pathConsumer);
|
||||
|
|
Loading…
Reference in a new issue