mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 19:59:42 +00:00
Fix ExplodedDirectoryLocator visiting non-existent paths. Closes #7203
Also, bump modlauncher to 7.0.1 to fix resources. Signed-off-by: cpw <[email protected]>
This commit is contained in:
1 file changed
+1
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user