Skip to content

Commit

Permalink
Fix crash when trying to scan an empty list of mods.
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 authored and sfPlayer1 committed Oct 26, 2024
1 parent 686b59f commit e7694f0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ public List<ModCandidateImpl> discoverMods(FabricLoaderImpl loader, Map<String,
}
}

futures.add(pool.submit(new ModScanTask(pendingPaths, requiresRemap)));
if (!pendingPaths.isEmpty()) {
futures.add(pool.submit(new ModScanTask(pendingPaths, requiresRemap)));
}
};

for (ModCandidateFinder finder : candidateFinders) {
Expand Down

0 comments on commit e7694f0

Please sign in to comment.