NOISSUE update FTB URLs
This commit is contained in:
@ -9,6 +9,8 @@
|
||||
#include "minecraft/ComponentList.h"
|
||||
#include "minecraft/GradleSpecifier.h"
|
||||
|
||||
#include "net/URLConstants.h"
|
||||
|
||||
FtbPackInstallTask::FtbPackInstallTask(FtbModpack pack, QString version)
|
||||
{
|
||||
m_pack = pack;
|
||||
@ -32,11 +34,11 @@ void FtbPackInstallTask::downloadPack()
|
||||
QString url;
|
||||
if(m_pack.type == FtbPackType::Private)
|
||||
{
|
||||
url = QString("https://ftb.cursecdn.com/FTB2/privatepacks/%1").arg(packoffset);
|
||||
url = QString(URLConstants::FTB_CDN_BASE_URL + "privatepacks/%1").arg(packoffset);
|
||||
}
|
||||
else
|
||||
{
|
||||
url = QString("https://ftb.cursecdn.com/FTB2/modpacks/%1").arg(packoffset);
|
||||
url = QString(URLConstants::FTB_CDN_BASE_URL + "modpacks/%1").arg(packoffset);
|
||||
}
|
||||
job->addNetAction(Net::Download::makeCached(url, entry));
|
||||
archivePath = entry->getFullPath();
|
||||
|
Reference in New Issue
Block a user