diff options
author | flow <flowlnlnln@gmail.com> | 2022-06-11 14:19:51 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-11 14:19:51 -0300 |
commit | 29e5a213a5be2d3716018b64241ac030ca2b0af5 (patch) | |
tree | f1aac4d9aea3772d180f1565e18c1466d38e90e9 /launcher/InstanceImportTask.cpp | |
parent | 54144154f9761726edda4adf811e86b883f9603b (diff) | |
download | PrismLauncher-29e5a213a5be2d3716018b64241ac030ca2b0af5.tar.gz PrismLauncher-29e5a213a5be2d3716018b64241ac030ca2b0af5.tar.bz2 PrismLauncher-29e5a213a5be2d3716018b64241ac030ca2b0af5.zip |
fix: dequeue first added file in mrpack import
Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/InstanceImportTask.cpp')
-rw-r--r-- | launcher/InstanceImportTask.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/InstanceImportTask.cpp b/launcher/InstanceImportTask.cpp index 3dcd92c8..1498db6f 100644 --- a/launcher/InstanceImportTask.cpp +++ b/launcher/InstanceImportTask.cpp @@ -744,7 +744,7 @@ void InstanceImportTask::processModrinth() { auto path = FS::PathCombine(m_stagingPath, ".minecraft", file.path); qDebug() << "Will try to download" << file.downloads.front() << "to" << path; - auto dl = Net::Download::makeFile(file.downloads.front(), path); + auto dl = Net::Download::makeFile(file.downloads.dequeue(), path); dl->addValidator(new Net::ChecksumValidator(file.hashAlgorithm, file.hash)); m_filesNetJob->addNetAction(dl); |