GH-2026 blacklist new Minecraft snapshots and releases

This commit is contained in:
Petr Mrázek
2017-10-25 22:48:58 +02:00
parent 84e23e2e7a
commit 170bd677fd
2 changed files with 27 additions and 3 deletions

View File

@@ -289,9 +289,21 @@ void MinecraftVersionList::loadMojangList(QJsonDocument jsonDoc, VersionSource s
// OneSix or Legacy. use filter to determine type // OneSix or Legacy. use filter to determine type
if (versionTypeStr == "release") if (versionTypeStr == "release")
{ {
if(versionID.startsWith("1.13"))
{
qCritical() << "Ignoring" << versionID
<< "because it is too new and not compatible.";
continue;
}
} }
else if (versionTypeStr == "snapshot") // It's a snapshot... yay else if (versionTypeStr == "snapshot") // It's a snapshot... yay
{ {
if(mcVersion->m_releaseTime.currentSecsSinceEpoch() >= 1508942630)
{
qCritical() << "Ignoring" << versionID
<< "because it is too new and not compatible.";
continue;
}
} }
else if (versionTypeStr == "old_alpha") else if (versionTypeStr == "old_alpha")
{ {
@@ -308,6 +320,7 @@ void MinecraftVersionList::loadMojangList(QJsonDocument jsonDoc, VersionSource s
mcVersion->m_type = versionTypeStr; mcVersion->m_type = versionTypeStr;
qDebug() << "Loaded version" << versionID << "from" qDebug() << "Loaded version" << versionID << "from"
<< ((source == VersionSource::Remote) ? "remote" : "local") << "version list."; << ((source == VersionSource::Remote) ? "remote" : "local") << "version list.";
qDebug() << "Loaded version timestamp: " << mcVersion->m_releaseTime;
tempList.append(mcVersion); tempList.append(mcVersion);
} }
updateListData(tempList); updateListData(tempList);

View File

@@ -1,6 +1,18 @@
# MultiMC 0.5.1 # MultiMC 0.5.2
## Improvements ## Internals
- GH-2026: New Minecraft snapshots are not compatible.
The temporary solution is blocking of new Minecraft snapshots and versions.
A future release will add full compatibility.
# Previous releases
## MultiMC 0.5.1
### Improvements
- Log uploads now use HTTPS because the [paste.ee](https://paste.ee) site is switching to HTTPS only. - Log uploads now use HTTPS because the [paste.ee](https://paste.ee) site is switching to HTTPS only.
@@ -43,7 +55,6 @@
The instance type of the copy was not set, causing it to not be usable. The instance type of the copy was not set, causing it to not be usable.
# Previous releases
## MultiMC 0.5.0 ## MultiMC 0.5.0