mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 03:49:14 +00:00
Modify how modfiles load slightly, for better decoupling.
Signed-off-by: cpw <[email protected]>
This commit is contained in:
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());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user