ATLauncher: Avoid downloading Forge twice for older packs
This resolves a quirk where Forge would still be downloaded for use as a jarmod, even when we detected Forge as a component.
This commit is contained in:
parent
1e6df7eec0
commit
97a83c9b7a
@ -574,8 +574,6 @@ void PackInstallTask::downloadMods()
|
|||||||
jobPtr->addNetAction(dl);
|
jobPtr->addNetAction(dl);
|
||||||
|
|
||||||
auto path = FS::PathCombine(m_stagingPath, "minecraft", relpath, mod.file);
|
auto path = FS::PathCombine(m_stagingPath, "minecraft", relpath, mod.file);
|
||||||
qDebug() << "Will download" << url << "to" << path;
|
|
||||||
modsToCopy[entry->getFullPath()] = path;
|
|
||||||
|
|
||||||
if(mod.type == ModType::Forge) {
|
if(mod.type == ModType::Forge) {
|
||||||
auto vlist = APPLICATION->metadataIndex()->get("net.minecraftforge");
|
auto vlist = APPLICATION->metadataIndex()->get("net.minecraftforge");
|
||||||
@ -597,6 +595,10 @@ void PackInstallTask::downloadMods()
|
|||||||
qDebug() << "Jarmod: " + path;
|
qDebug() << "Jarmod: " + path;
|
||||||
jarmods.push_back(path);
|
jarmods.push_back(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Download after Forge handling, to avoid downloading Forge twice.
|
||||||
|
qDebug() << "Will download" << url << "to" << path;
|
||||||
|
modsToCopy[entry->getFullPath()] = path;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user