summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/OneSixVersionFormat.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2020-07-18 16:18:02 +0200
committerPetr Mrázek <peterix@gmail.com>2020-07-18 16:22:05 +0200
commite7f373496ed51d30d87eb1b75410d4f02f0412ec (patch)
treedb040fd29b1a95968324ef0b52fbc48d228d9f25 /api/logic/minecraft/OneSixVersionFormat.cpp
parent3158082b16009907e1abed0308498d10788f0f42 (diff)
downloadMultiMC-e7f373496ed51d30d87eb1b75410d4f02f0412ec.tar
MultiMC-e7f373496ed51d30d87eb1b75410d4f02f0412ec.tar.gz
MultiMC-e7f373496ed51d30d87eb1b75410d4f02f0412ec.tar.lz
MultiMC-e7f373496ed51d30d87eb1b75410d4f02f0412ec.tar.xz
MultiMC-e7f373496ed51d30d87eb1b75410d4f02f0412ec.zip
GH-3234 Add support for custom meta URLs at build time
This is not particularly interesting for non-developers. Also includes some internal restructuring of URL constants in general.
Diffstat (limited to 'api/logic/minecraft/OneSixVersionFormat.cpp')
-rw-r--r--api/logic/minecraft/OneSixVersionFormat.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/api/logic/minecraft/OneSixVersionFormat.cpp b/api/logic/minecraft/OneSixVersionFormat.cpp
index a0b6fd0e..7ac9e2db 100644
--- a/api/logic/minecraft/OneSixVersionFormat.cpp
+++ b/api/logic/minecraft/OneSixVersionFormat.cpp
@@ -198,7 +198,10 @@ VersionFilePtr OneSixVersionFormat::versionFileFromJson(const QJsonDocument &doc
// FIXME: this will eventually break...
else
{
- lib->setAbsoluteUrl(URLConstants::getLegacyJarUrl(out->minecraftVersion));
+ out->addProblem(
+ ProblemSeverity::Error,
+ QObject::tr("URL for the main jar could not be determined - Mojang removed the server that we used as fallback.")
+ );
}
out->mainJar = lib;
}