summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/legacy/LegacyUpdate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/minecraft/legacy/LegacyUpdate.cpp')
-rw-r--r--logic/minecraft/legacy/LegacyUpdate.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/logic/minecraft/legacy/LegacyUpdate.cpp b/logic/minecraft/legacy/LegacyUpdate.cpp
index af787f8c..2d7e8dd2 100644
--- a/logic/minecraft/legacy/LegacyUpdate.cpp
+++ b/logic/minecraft/legacy/LegacyUpdate.cpp
@@ -367,14 +367,12 @@ void LegacyUpdate::jarStart()
setStatus(tr("Downloading new minecraft.jar ..."));
QString version_id = inst->intendedVersionId();
- QString localPath = version_id + "/" + version_id + ".jar";
- QString urlstr = "http://" + URLConstants::AWS_DOWNLOAD_VERSIONS + localPath;
auto dljob = new NetJob("Minecraft.jar for version " + version_id);
auto metacache = ENV.metacache();
- auto entry = metacache->resolveEntry("versions", localPath);
- dljob->addNetAction(CacheDownload::make(QUrl(urlstr), entry));
+ auto entry = metacache->resolveEntry("versions", URLConstants::getJarPath(version_id));
+ dljob->addNetAction(CacheDownload::make(QUrl(URLConstants::getLegacyJarUrl(version_id)), entry));
connect(dljob, SIGNAL(succeeded()), SLOT(jarFinished()));
connect(dljob, SIGNAL(failed(QString)), SLOT(jarFailed(QString)));
connect(dljob, SIGNAL(progress(qint64, qint64)), SIGNAL(progress(qint64, qint64)));