mirror of
https://github.com/packwiz/packwiz.git
synced 2025-05-02 18:46:31 +02:00
Allow "updating" CurseForge files to older versions
This commit is contained in:
parent
e966eaffc0
commit
7de26ec5c3
@ -419,8 +419,8 @@ func (u cfUpdater) CheckUpdate(mods []core.Mod, pack core.Pack) ([]core.UpdateCh
|
|||||||
project := projectRaw.(cfUpdateData)
|
project := projectRaw.(cfUpdateData)
|
||||||
|
|
||||||
fileID, fileInfoData, fileName := findLatestFile(modInfos[i], mcVersions, packLoaders)
|
fileID, fileInfoData, fileName := findLatestFile(modInfos[i], mcVersions, packLoaders)
|
||||||
if fileID > project.FileID && fileID != 0 {
|
if fileID != project.FileID && fileID != 0 {
|
||||||
// Update available!
|
// Update (or downgrade, if changing to an older version) available!
|
||||||
results[i] = core.UpdateCheck{
|
results[i] = core.UpdateCheck{
|
||||||
UpdateAvailable: true,
|
UpdateAvailable: true,
|
||||||
UpdateString: v.FileName + " -> " + fileName,
|
UpdateString: v.FileName + " -> " + fileName,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user