From 68ef451be5a0b8724381187f5aa123d87b82e222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 11 May 2014 19:13:21 +0200 Subject: Small fixes, including release dates of some legacy versions --- logic/minecraft/MinecraftVersion.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'logic/minecraft/MinecraftVersion.cpp') diff --git a/logic/minecraft/MinecraftVersion.cpp b/logic/minecraft/MinecraftVersion.cpp index e0cbce8d..b66b9768 100644 --- a/logic/minecraft/MinecraftVersion.cpp +++ b/logic/minecraft/MinecraftVersion.cpp @@ -20,14 +20,26 @@ QString MinecraftVersion::name() QString MinecraftVersion::typeString() const { - if (is_snapshot) + if(m_type == "snapshot") { return QObject::tr("Snapshot"); } - else + else if (m_type == "release") { return QObject::tr("Regular release"); } + else if (m_type == "old_alpha") + { + return QObject::tr("Alpha"); + } + else if (m_type == "old_beta") + { + return QObject::tr("Beta"); + } + else + { + return QString(); + } } bool MinecraftVersion::hasJarMods() -- cgit v1.2.3