Skip to content

Commit

Permalink
Only filter out versions when dealing with modpacks so that non-modpa…
Browse files Browse the repository at this point in the history
…cks will always update the dependencies
  • Loading branch information
VilppeRiskidev committed Feb 28, 2025
1 parent bacbfad commit 8d04468
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/r2mm/downloading/BetterThunderstoreDownloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,12 @@ export default class BetterThunderstoreDownloader extends ThunderstoreDownloader

await this.buildDependencySet(combo.getVersion(), dependencies, versionMode);
this.sortDependencyOrder(dependencies);
// #270: Remove already-installed dependencies to prevent updating.
return dependencies.filter((dep) => {
return !(modList.some(installed => installed.getName() === dep.getMod().getFullName()));
});

return !isModpack ? dependencies :
// #270: Remove already-installed dependencies to prevent updating.
dependencies.filter((dep) => {
return !(modList.some(installed => installed.getName() === dep.getMod().getFullName()));
});
}

public async downloadImportedMods(
Expand Down

0 comments on commit 8d04468

Please sign in to comment.