diff options
author | Petr Mrázek <peterix@gmail.com> | 2018-11-04 13:18:35 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2018-11-04 13:18:35 +0100 |
commit | 58260da861a51d503fa6fb08f67918cc8dddd36f (patch) | |
tree | 3b355c675c356b328607b7d145f175bab2f6ed8e /api/logic/minecraft/update/FMLLibrariesTask.cpp | |
parent | 16cc20aefdccac7f68819b9c7bc6532a5f027b8b (diff) | |
download | MultiMC-58260da861a51d503fa6fb08f67918cc8dddd36f.tar MultiMC-58260da861a51d503fa6fb08f67918cc8dddd36f.tar.gz MultiMC-58260da861a51d503fa6fb08f67918cc8dddd36f.tar.lz MultiMC-58260da861a51d503fa6fb08f67918cc8dddd36f.tar.xz MultiMC-58260da861a51d503fa6fb08f67918cc8dddd36f.zip |
NOISSUE remove use of obsolete URL constants, simplify the rest
Diffstat (limited to 'api/logic/minecraft/update/FMLLibrariesTask.cpp')
-rw-r--r-- | api/logic/minecraft/update/FMLLibrariesTask.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/api/logic/minecraft/update/FMLLibrariesTask.cpp b/api/logic/minecraft/update/FMLLibrariesTask.cpp index 5b4975ab..52a8375b 100644 --- a/api/logic/minecraft/update/FMLLibrariesTask.cpp +++ b/api/logic/minecraft/update/FMLLibrariesTask.cpp @@ -63,8 +63,7 @@ void FMLLibrariesTask::executeTask() for (auto &lib : fmlLibsToProcess) { auto entry = metacache->resolveEntry("fmllibs", lib.filename); - QString urlString = lib.ours ? URLConstants::FMLLIBS_OUR_BASE_URL + lib.filename - : URLConstants::FMLLIBS_FORGE_BASE_URL + lib.filename; + QString urlString = (lib.ours ? URLConstants::FMLLIBS_OUR_BASE_URL : URLConstants::FMLLIBS_FORGE_BASE_URL) + lib.filename; dljob->addNetAction(Net::Download::makeCached(QUrl(urlString), entry)); } |