You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(mods): don't prompt to install dependencies that are already installed
The 'install dependencies' dialog listed every dependency the selected
Modrinth version declared, with no check against what's already in the
mods folder — so reinstalling/updating a mod with common deps (Fabric
API, Cloth Config, etc.) nagged you to 'install' something already
there, matched only against the exact same version's own hash, not
any installed version of the dependency itself.
Added getInstalledModrinthProjectIds(): bulk-hashes every jar in the
mods folder and resolves them against Modrinth's version_files
endpoint in one request to get each installed jar's project id.
handleInstallation() now filters the dependency list against that set
before prompting — already-installed deps are silently dropped, and if
that empties the list entirely, the dialog is skipped altogether and
the mod downloads directly, same as the no-dependencies case.
(CurseForge-sourced mods don't populate versionDependencyIds at all
today, so this only affects the Modrinth dependency-resolution path —
consistent with the existing 'no deps' short-circuit already only
applying there.)
0 commit comments