Make forge work.
Using classifiers FTW.
This commit is contained in:
@ -2,6 +2,8 @@
|
||||
#include "InstanceVersion.h"
|
||||
#include "VersionBuildError.h"
|
||||
#include "VersionBuilder.h"
|
||||
#include "MultiMC.h"
|
||||
#include "logic/settings/SettingsObject.h"
|
||||
|
||||
bool MinecraftVersion::usesLegacyLauncher()
|
||||
{
|
||||
@ -141,3 +143,15 @@ QString MinecraftVersion::getPatchFilename()
|
||||
{
|
||||
return QString();
|
||||
}
|
||||
|
||||
bool MinecraftVersion::needsUpdate()
|
||||
{
|
||||
auto settings = MMC->settings();
|
||||
bool result = hasUpdate() && settings->get("AutoUpdateMinecraftVersions").toBool();
|
||||
return result;
|
||||
}
|
||||
|
||||
bool MinecraftVersion::hasUpdate()
|
||||
{
|
||||
return m_versionSource == Remote || (m_versionSource == Local && upstreamUpdate);
|
||||
}
|
||||
|
Reference in New Issue
Block a user