Compare Modrinth versions by release date, warn if inconsistent with version numbers

This commit is contained in:
comp500
2023-02-14 12:16:24 +00:00
parent 074e68f9b0
commit d667447a88
3 changed files with 44 additions and 30 deletions

View File

@@ -47,7 +47,7 @@ func (u mrUpdater) CheckUpdate(mods []core.Mod, mcVersion string, pack core.Pack
data := rawData.(mrUpdateData)
newVersion, err := getLatestVersion(data.ProjectID, pack)
newVersion, err := getLatestVersion(data.ProjectID, mod.Name, pack)
if err != nil {
results[i] = core.UpdateCheck{Error: fmt.Errorf("failed to get latest version: %v", err)}
continue