GH-3764 Only install client mods for ATLauncher packs

This commit is contained in:
Jamie Mansfield 2021-05-06 17:14:49 +01:00
parent 438ddfb88d
commit df7873eb9a
No known key found for this signature in database
GPG Key ID: 36F61598F39F67B0
3 changed files with 5 additions and 0 deletions

View File

@ -462,6 +462,9 @@ void PackInstallTask::downloadMods()
jarmods.clear();
jobPtr.reset(new NetJob(tr("Mod download")));
for(const auto& mod : m_version.mods) {
// skip non-client mods
if (!mod.client) continue;
// skip optional mods for now
if(mod.optional) continue;

View File

@ -144,6 +144,7 @@ static void loadVersionMod(ATLauncher::VersionMod & p, QJsonObject & obj) {
}
p.optional = Json::ensureBoolean(obj, QString("optional"), false);
p.client = Json::ensureBoolean(obj, QString("client"), false);
}
void ATLauncher::loadVersion(PackVersion & v, QJsonObject & obj)

View File

@ -87,6 +87,7 @@ struct VersionMod
QString decompFile;
bool optional;
bool client;
};
struct PackVersion