From e7f373496ed51d30d87eb1b75410d4f02f0412ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 18 Jul 2020 16:18:02 +0200 Subject: 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. --- api/logic/minecraft/OneSixVersionFormat.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'api/logic/minecraft/OneSixVersionFormat.cpp') 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; } -- cgit v1.2.3