diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-02-28 20:52:50 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-02-28 20:52:50 +0100 |
commit | 160b5033a79e6b5ee9f3e2a001b96c677f41ddcb (patch) | |
tree | 2d385f3b4c7eb4a42ea14420ca5abe1bdfcd1acb /api | |
parent | 01cb5ebb35fbcace104ba28cdb517ff256258b85 (diff) | |
download | MultiMC-160b5033a79e6b5ee9f3e2a001b96c677f41ddcb.tar MultiMC-160b5033a79e6b5ee9f3e2a001b96c677f41ddcb.tar.gz MultiMC-160b5033a79e6b5ee9f3e2a001b96c677f41ddcb.tar.lz MultiMC-160b5033a79e6b5ee9f3e2a001b96c677f41ddcb.tar.xz MultiMC-160b5033a79e6b5ee9f3e2a001b96c677f41ddcb.zip |
GH-1828 hardcode legacy assets location to fix legacy launch
Diffstat (limited to 'api')
-rw-r--r-- | api/logic/minecraft/MojangDownloadInfo.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/api/logic/minecraft/MojangDownloadInfo.h b/api/logic/minecraft/MojangDownloadInfo.h index 1f3306e0..7399a56b 100644 --- a/api/logic/minecraft/MojangDownloadInfo.h +++ b/api/logic/minecraft/MojangDownloadInfo.h @@ -60,7 +60,18 @@ struct MojangAssetIndexInfo : public MojangDownloadInfo MojangAssetIndexInfo(QString id) { this->id = id; - url = "https://s3.amazonaws.com/Minecraft.Download/indexes/" + id + ".json"; + // HACK: ignore assets from other version files than Minecraft + // workaround for stupid assets issue caused by amazon: + // https://www.theregister.co.uk/2017/02/28/aws_is_awol_as_s3_goes_haywire/ + if(id == "legacy") + { + url = "https://launchermeta.mojang.com/mc/assets/legacy/c0fd82e8ce9fbc93119e40d96d5a4e62cfa3f729/legacy.json"; + } + // HACK + else + { + url = "https://s3.amazonaws.com/Minecraft.Download/indexes/" + id + ".json"; + } known = false; } |