Properly detect if the instance is vanilla and don't treat it as custom.
This commit is contained in:
parent
fd6706391b
commit
814d5d3315
6 changed files with 23 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue