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

View file

@ -38,9 +38,9 @@ public class ModDirTransformerDiscoverer implements ITransformerDiscoveryService
return ModDirTransformerDiscoverer.transformers; 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() { public static List<Path> allExcluded() {
ArrayList<Path> paths = new ArrayList<>(); ArrayList<Path> paths = new ArrayList<>();
paths.addAll(transformers); paths.addAll(transformers);