Properly detect if the instance is vanilla and don't treat it as custom.

This commit is contained in:
Petr Mrázek
2014-08-11 02:17:48 +02:00
parent fd6706391b
commit 814d5d3315
6 changed files with 23 additions and 2 deletions

View File

@ -155,3 +155,9 @@ bool MinecraftVersion::hasUpdate()
{
return m_versionSource == Remote || (m_versionSource == Local && upstreamUpdate);
}
bool MinecraftVersion::isCustom()
{
// if we add any other source types, this will evaluate to false for them.
return m_versionSource != Builtin && m_versionSource != Local && m_versionSource != Remote;
}