mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-15 14:56:05 -04:00
fix(download): only list required mod dependency
This commit is contained in:
parent
e78fd8ba94
commit
adb2ed0614
@ -165,6 +165,7 @@ public class CurseAddon implements DownloadManager.IMod {
|
|||||||
public List<DownloadManager.Mod> loadDependencies() throws IOException {
|
public List<DownloadManager.Mod> loadDependencies() throws IOException {
|
||||||
Set<Integer> dependencies = latestFiles.stream()
|
Set<Integer> dependencies = latestFiles.stream()
|
||||||
.flatMap(latestFile -> latestFile.getDependencies().stream())
|
.flatMap(latestFile -> latestFile.getDependencies().stream())
|
||||||
|
.filter(dep -> dep.getType() == 3)
|
||||||
.map(Dependency::getAddonId)
|
.map(Dependency::getAddonId)
|
||||||
.collect(Collectors.toSet());
|
.collect(Collectors.toSet());
|
||||||
List<DownloadManager.Mod> mods = new ArrayList<>();
|
List<DownloadManager.Mod> mods = new ArrayList<>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user