Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anuken
2020-01-04 12:10:21 -05:00

View File

@@ -512,15 +512,13 @@ public class Mods implements Loadable{
for(ContentType type : ContentType.all){ for(ContentType type : ContentType.all){
Fi folder = contentRoot.child(type.name().toLowerCase() + "s"); Fi folder = contentRoot.child(type.name().toLowerCase() + "s");
if(folder.exists()){ if(folder.exists()){
for(Fi file : folder.list()){ for(Fi file : folder.findAll(f -> f.extension().equals("json") || f.extension().equals("hjson"))){
if(file.extension().equals("json") || file.extension().equals("hjson")){
runs.add(new LoadRun(type, file, mod)); runs.add(new LoadRun(type, file, mod));
} }
} }
} }
} }
} }
}
//make sure mod content is in proper order //make sure mod content is in proper order
runs.sort(); runs.sort();