Fixed mod crash

This commit is contained in:
Anuken 2022-05-07 01:12:20 -04:00
parent 9c86433047
commit dfb01ebdf1

View File

@ -783,14 +783,15 @@ public class Mods implements Loadable{
ObjectMap<String, Seq<String>> dependencies = new ObjectMap<>();
for(Fi file : files){
Fi zip = file.isDirectory() ? file : new ZipFi(file);
if(zip.list().length == 1 && zip.list()[0].isDirectory()){
zip = zip.list()[0];
}
ModMeta meta = null;
try{
Fi zip = file.isDirectory() ? file : new ZipFi(file);
if(zip.list().length == 1 && zip.list()[0].isDirectory()){
zip = zip.list()[0];
}
meta = findMeta(zip);
}catch(Exception ignored){
}