mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 04:32:15 +00:00
Fix exploded directory locator to actually scan all paths for a file.
This commit is contained in:
1 parent
0d3f28bd52
commit
755eff7415
1 file changed
+2
-1
+2
-1
@@ -76,7 +76,8 @@ public class ExplodedDirectoryLocator implements IModLocator {
|
||||
Path found = mods.get(modFile).getLeft().resolve(target);
|
||||
if (Files.exists(found)) return found;
|
||||
// then try left path (classes)
|
||||
return mods.get(modFile).getRight().stream().map(p->p.resolve(target)).findFirst().orElse(found.resolve(target));
|
||||
return mods.get(modFile).getRight().stream().map(p->p.resolve(target)).filter(Files::exists).
|
||||
findFirst().orElse(found.resolve(target));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user