summaryrefslogtreecommitdiffstats
path: root/api/logic/modplatform/ftb/FtbPackInstallTask.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'api/logic/modplatform/ftb/FtbPackInstallTask.cpp')
-rw-r--r--api/logic/modplatform/ftb/FtbPackInstallTask.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/api/logic/modplatform/ftb/FtbPackInstallTask.cpp b/api/logic/modplatform/ftb/FtbPackInstallTask.cpp
index 2340666d..9b7689d9 100644
--- a/api/logic/modplatform/ftb/FtbPackInstallTask.cpp
+++ b/api/logic/modplatform/ftb/FtbPackInstallTask.cpp
@@ -29,7 +29,15 @@ void FtbPackInstallTask::downloadPack()
NetJob *job = new NetJob("Download FTB Pack");
entry->setStale(true);
- QString url = QString("http://ftb.cursecdn.com/FTB2/modpacks/%1").arg(packoffset);
+ QString url;
+ if(m_pack.type == FtbPackType::Private)
+ {
+ url = QString("http://ftb.cursecdn.com/FTB2/privatepacks/%1").arg(packoffset);
+ }
+ else
+ {
+ url = QString("http://ftb.cursecdn.com/FTB2/modpacks/%1").arg(packoffset);
+ }
job->addNetAction(Net::Download::makeCached(url, entry));
archivePath = entry->getFullPath();