GH-3764 Only install client mods for ATLauncher packs
This commit is contained in:
parent
438ddfb88d
commit
df7873eb9a
@ -462,6 +462,9 @@ void PackInstallTask::downloadMods()
|
|||||||
jarmods.clear();
|
jarmods.clear();
|
||||||
jobPtr.reset(new NetJob(tr("Mod download")));
|
jobPtr.reset(new NetJob(tr("Mod download")));
|
||||||
for(const auto& mod : m_version.mods) {
|
for(const auto& mod : m_version.mods) {
|
||||||
|
// skip non-client mods
|
||||||
|
if (!mod.client) continue;
|
||||||
|
|
||||||
// skip optional mods for now
|
// skip optional mods for now
|
||||||
if(mod.optional) continue;
|
if(mod.optional) continue;
|
||||||
|
|
||||||
|
@ -144,6 +144,7 @@ static void loadVersionMod(ATLauncher::VersionMod & p, QJsonObject & obj) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
p.optional = Json::ensureBoolean(obj, QString("optional"), false);
|
p.optional = Json::ensureBoolean(obj, QString("optional"), false);
|
||||||
|
p.client = Json::ensureBoolean(obj, QString("client"), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATLauncher::loadVersion(PackVersion & v, QJsonObject & obj)
|
void ATLauncher::loadVersion(PackVersion & v, QJsonObject & obj)
|
||||||
|
@ -87,6 +87,7 @@ struct VersionMod
|
|||||||
QString decompFile;
|
QString decompFile;
|
||||||
|
|
||||||
bool optional;
|
bool optional;
|
||||||
|
bool client;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct PackVersion
|
struct PackVersion
|
||||||
|
Loading…
Reference in New Issue
Block a user