summaryrefslogtreecommitdiffstats
path: root/logic
diff options
context:
space:
mode:
Diffstat (limited to 'logic')
-rw-r--r--logic/LegacyInstance.cpp2
-rw-r--r--logic/NostalgiaInstance.cpp4
-rw-r--r--logic/NostalgiaInstance.h1
-rw-r--r--logic/lists/MinecraftVersionList.cpp4
4 files changed, 11 insertions, 0 deletions
diff --git a/logic/LegacyInstance.cpp b/logic/LegacyInstance.cpp
index 2ffcb075..205f6873 100644
--- a/logic/LegacyInstance.cpp
+++ b/logic/LegacyInstance.cpp
@@ -314,6 +314,8 @@ QString LegacyInstance::defaultCustomBaseJar() const
bool LegacyInstance::menuActionEnabled ( QString action_name ) const
{
+ if (action_name == "actionChangeInstMCVersion")
+ return false;
return true;
}
diff --git a/logic/NostalgiaInstance.cpp b/logic/NostalgiaInstance.cpp
index 039cd9ce..efd8f46b 100644
--- a/logic/NostalgiaInstance.cpp
+++ b/logic/NostalgiaInstance.cpp
@@ -11,6 +11,10 @@ QString NostalgiaInstance::getStatusbarDescription()
return "Nostalgia : " + intendedVersionId();
}
+bool NostalgiaInstance::menuActionEnabled(QString action_name) const
+{
+ return false;
+}
/*
ADD MORE
diff --git a/logic/NostalgiaInstance.h b/logic/NostalgiaInstance.h
index 1436e48d..64eb7a81 100644
--- a/logic/NostalgiaInstance.h
+++ b/logic/NostalgiaInstance.h
@@ -8,5 +8,6 @@ class NostalgiaInstance : public OneSixInstance
public:
explicit NostalgiaInstance(const QString &rootDir, SettingsObject * settings, QObject *parent = 0);
virtual QString getStatusbarDescription();
+ virtual bool menuActionEnabled(QString action_name) const;
};
diff --git a/logic/lists/MinecraftVersionList.cpp b/logic/lists/MinecraftVersionList.cpp
index 36611165..fbf609b5 100644
--- a/logic/lists/MinecraftVersionList.cpp
+++ b/logic/lists/MinecraftVersionList.cpp
@@ -122,9 +122,13 @@ MCVListLoadTask::MCVListLoadTask(MinecraftVersionList *vlist)
legacyWhitelist.insert("1.4.6");
legacyWhitelist.insert("1.4.5");
legacyWhitelist.insert("1.4.4");
+ legacyWhitelist.insert("1.4.3");
legacyWhitelist.insert("1.4.2");
+ legacyWhitelist.insert("1.4.1");
+ legacyWhitelist.insert("1.4");
legacyWhitelist.insert("1.3.2");
legacyWhitelist.insert("1.3.1");
+ legacyWhitelist.insert("1.3");
legacyWhitelist.insert("1.2.5");
legacyWhitelist.insert("1.2.4");
legacyWhitelist.insert("1.2.3");