mirror of
https://github.com/packwiz/packwiz-installer.git
synced 2025-04-19 13:06:30 +02:00
Fix manual link resolution for files not visible in CF API (fixes #48)
This commit is contained in:
parent
01dcc09a78
commit
fa9fe18215
@ -97,6 +97,16 @@ fun resolveCfMetadata(mods: List<IndexFile.File>, packFolder: PackwizFilePath, c
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Some file types don't show up in the API at all! (e.g. shaderpacks)
|
||||||
|
// Add unresolved files to manualDownloadMods
|
||||||
|
for ((fileId, file) in fileIdMap) {
|
||||||
|
if (file.linkedFile != null) {
|
||||||
|
if (file.linkedFile!!.resolvedUpdateData["curseforge"] == null) {
|
||||||
|
manualDownloadMods[(file.linkedFile!!.update["curseforge"] as CurseForgeUpdateData).projectId] = Pair(file, fileId)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (manualDownloadMods.isNotEmpty()) {
|
if (manualDownloadMods.isNotEmpty()) {
|
||||||
val reqModsData = GetModsRequest(manualDownloadMods.keys.toList())
|
val reqModsData = GetModsRequest(manualDownloadMods.keys.toList())
|
||||||
val reqMods = Request.Builder()
|
val reqMods = Request.Builder()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user