mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fix NPE in modlauncher when there is no mods dir yet.
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -38,9 +38,9 @@ public class ModDirTransformerDiscoverer implements ITransformerDiscoveryService
|
||||
return ModDirTransformerDiscoverer.transformers;
|
||||
}
|
||||
|
||||
private static List<Path> transformers;
|
||||
private static List<Path> transformers = new ArrayList<>();
|
||||
private static List<Path> locators = new ArrayList<>();
|
||||
|
||||
private static List<Path> locators;
|
||||
public static List<Path> allExcluded() {
|
||||
ArrayList<Path> paths = new ArrayList<>();
|
||||
paths.addAll(transformers);
|
||||
|
||||
Reference in new issue
Block a user