This commit is contained in:
Leo-MathGuy
2024-04-25 19:44:44 +05:00
parent 1622ecd010
commit 617953dd89
-4
View File
@@ -738,15 +738,11 @@ public class Mods implements Loadable{
Fi folder = contentRoot.child(lower + (lower.endsWith("s") ? "" : "s")); Fi folder = contentRoot.child(lower + (lower.endsWith("s") ? "" : "s"));
if(folder.exists()){ if(folder.exists()){
for(Fi file : folder.findAll(f -> f.extension().equals("json") || f.extension().equals("hjson"))){ for(Fi file : folder.findAll(f -> f.extension().equals("json") || f.extension().equals("hjson"))){
if(contentOrder == null){
runs.add(new LoadRun(type, file, mod));
}else{
currentRun.put(file.nameWithoutExtension(), new LoadRun(type, file, mod)); currentRun.put(file.nameWithoutExtension(), new LoadRun(type, file, mod));
} }
} }
} }
} }
}
Seq<String> left = currentRun.keys().toSeq(); Seq<String> left = currentRun.keys().toSeq();
if(contentOrder != null){ if(contentOrder != null){