mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-21 01:37:13 +07:00
Fixed mod crash
This commit is contained in:
parent
9c86433047
commit
dfb01ebdf1
@ -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){
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user