GH-1856 Make MultiMC fail hard when things are missing

Things like:
* jar mods
* valid version files
This commit is contained in:
Petr Mrázek
2017-04-23 02:31:13 +02:00
parent b414bbe395
commit 3f24c4cfe5
12 changed files with 57 additions and 98 deletions

View File

@ -177,11 +177,11 @@ bool MinecraftProfile::revertToBase(int index)
ProfilePatchPtr MinecraftProfile::versionPatch(const QString &id)
{
for (auto file : m_patches)
for (auto patch : m_patches)
{
if (file->getID() == id)
if (patch->getID() == id)
{
return file;
return patch;
}
}
return nullptr;