Fix early sorting bug that meant the file deduping was causing an error, to, well, not cause it, so we can get to an error screen.

Signed-off-by: cpw <cpw+github@weeksfamily.ca>
This commit is contained in:
cpw 2020-11-02 14:57:23 -05:00
parent f54998a6b7
commit 5a7facc20f
No known key found for this signature in database
GPG Key ID: 8EB3DF749553B1B7
1 changed files with 5 additions and 0 deletions

View File

@ -74,6 +74,11 @@ public class ModSorter
} catch (EarlyLoadingException ele) {
earlyLoadingException = ele;
ms.sortedList = Collections.emptyList();
try {
ms.buildUniqueList();
} catch (EarlyLoadingException ele2) {
//IGNORE
}
}
return LoadingModList.of(ms.modFiles, ms.sortedList, earlyLoadingException);
}