Modify how modfiles load slightly, for better decoupling.

Signed-off-by: cpw <[email protected]>
This commit is contained in:
cpw committed 2020-06-25 17:51:27 -04:00
1 parent b117722d84
commit 20f78ac724
13 files changed
+261 -114

No files matched your search

@@ -52,7 +52,7 @@ public class ClasspathLocator extends AbstractJarFileLocator {
@Override
public List<IModFile> scanMods() {
return modCoords.stream().
map(mc -> new ModFile(mc, this)).
map(mc -> ModFile.newFMLInstance(mc, this)).
peek(f->modJars.compute(f, (mf, fs)->createFileSystem(mf))).
collect(Collectors.toList());
}