1
mirror of https://github.com/thepeacockproject/Peacock synced 2025-02-16 16:34:28 +01:00

Use official downloader when HITMAP fails (#126)

This commit is contained in:
moonysolari 2023-02-05 14:24:15 -05:00 committed by GitHub
parent 546b81e0f2
commit df5e3ae373
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -737,7 +737,7 @@ export class Controller {
`User ${userId} is downloading contract ${pubId}...`,
)
let contractData: MissionManifest | undefined
let contractData: MissionManifest | undefined = undefined
if (
gameVersion === "h3" &&
@ -747,8 +747,15 @@ export class Controller {
if (result) {
contractData = result
} else {
log(
LogLevel.WARN,
`Failed to download from HITMAP servers. Trying official servers instead...`,
)
}
} else {
}
if (!contractData) {
contractData = await Controller._officialFetchContract(
pubId,
gameVersion,