diff --git a/src/fmllauncher/java/net/minecraftforge/fml/loading/moddiscovery/ExplodedDirectoryLocator.java b/src/fmllauncher/java/net/minecraftforge/fml/loading/moddiscovery/ExplodedDirectoryLocator.java index 8f0a29756..0bbd1d0ee 100644 --- a/src/fmllauncher/java/net/minecraftforge/fml/loading/moddiscovery/ExplodedDirectoryLocator.java +++ b/src/fmllauncher/java/net/minecraftforge/fml/loading/moddiscovery/ExplodedDirectoryLocator.java @@ -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