This commit is contained in:
ZaneYork 2020-04-02 16:05:29 +08:00
parent 51e0428968
commit d870cdbc00
1 changed files with 5 additions and 1 deletions

View File

@ -73,7 +73,11 @@ public class ModAssetsManager {
File currentFile = files.poll(); File currentFile = files.poll();
if (currentFile != null && currentFile.exists()) { if (currentFile != null && currentFile.exists()) {
boolean foundManifest = false; boolean foundManifest = false;
for (File file : currentFile.listFiles(File::isFile)) { File[] listFiles = currentFile.listFiles(File::isFile);
if (listFiles == null) {
continue;
}
for (File file : listFiles) {
if (StringUtils.equalsIgnoreCase(file.getName(), "manifest.json")) { if (StringUtils.equalsIgnoreCase(file.getName(), "manifest.json")) {
ModManifestEntry manifest = FileUtils.getFileJson(file, ModManifestEntry.class); ModManifestEntry manifest = FileUtils.getFileJson(file, ModManifestEntry.class);
foundManifest = true; foundManifest = true;