Fix NPE in modlauncher when there is no mods dir yet.

Signed-off-by: cpw <cpw+github@weeksfamily.ca>
This commit is contained in:
cpw 2019-10-25 07:27:55 -04:00
parent 29ad7a39de
commit e3068d7db2
No known key found for this signature in database
GPG Key ID: 8EB3DF749553B1B7
1 changed files with 2 additions and 2 deletions

View File

@ -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);