Recover from the bin folder of converted legacy instance being deleted.

Use the new vanilla jar as the base jar if mcbackup.jar is missing.
This commit is contained in:
Petr Mrázek 2013-11-11 04:45:31 +01:00
parent b097d2f744
commit e611aef0e7

View File

@ -361,7 +361,10 @@ void LegacyUpdate::ModTheJar()
setStatus("Installing mods - backing up minecraft.jar...");
if (!baseJar.exists() && !QFile::copy(runnableJar.filePath(), baseJar.filePath()))
{
emitFailed("Failed to back up minecraft.jar");
emitFailed("It seems both the active and base jar are gone. A fresh base jar will be used on next run.");
inst->setShouldRebuild(true);
inst->setShouldUpdate(true);
inst->setShouldUseCustomBaseJar(false);
return;
}
}