NOISSUE resolve library activeness during application to profile

This commit is contained in:
Petr Mrázek 2016-03-13 02:28:55 +01:00
parent f63d1bc99c
commit 576d808d71
12 changed files with 51 additions and 87 deletions

View file

@ -32,12 +32,11 @@ void VersionFile::applyTo(MinecraftProfile *version)
throw MinecraftVersionMismatch(fileId, mcVersion, theirVersion);
}
}
bool is_minecraft = isMinecraftVersion();
version->applyMinecraftVersion(id);
version->applyMainClass(mainClass);
version->applyAppletClass(appletClass);
version->applyMinecraftArguments(minecraftArguments, is_minecraft);
if (is_minecraft)
version->applyMinecraftArguments(minecraftArguments);
if (isMinecraftVersion())
{
version->applyMinecraftVersionType(type);
}
@ -47,8 +46,8 @@ void VersionFile::applyTo(MinecraftProfile *version)
version->applyJarMods(jarMods);
version->applyTraits(traits);
for (auto addedLibrary : addLibs)
for (auto library : libraries)
{
version->applyLibrary(addedLibrary, isMinecraftVersion());
version->applyLibrary(library);
}
}