diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-03-12 19:45:28 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-04-07 00:20:01 +0200 |
commit | 2980322c3b34b252ead838daee7a844853feccf6 (patch) | |
tree | 4eba831705c497075d30391423a167ebc1c136fc /api/logic/minecraft/ftb/FTBInstanceProvider.cpp | |
parent | 8321187a20eec9871f327aa23f421e79dcfdd409 (diff) | |
download | MultiMC-2980322c3b34b252ead838daee7a844853feccf6.tar MultiMC-2980322c3b34b252ead838daee7a844853feccf6.tar.gz MultiMC-2980322c3b34b252ead838daee7a844853feccf6.tar.lz MultiMC-2980322c3b34b252ead838daee7a844853feccf6.tar.xz MultiMC-2980322c3b34b252ead838daee7a844853feccf6.zip |
NOISSUE Remove Minecraft version list and versions.
Diffstat (limited to 'api/logic/minecraft/ftb/FTBInstanceProvider.cpp')
-rw-r--r-- | api/logic/minecraft/ftb/FTBInstanceProvider.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/api/logic/minecraft/ftb/FTBInstanceProvider.cpp b/api/logic/minecraft/ftb/FTBInstanceProvider.cpp index 1321ea1b..fe23a84e 100644 --- a/api/logic/minecraft/ftb/FTBInstanceProvider.cpp +++ b/api/logic/minecraft/ftb/FTBInstanceProvider.cpp @@ -9,7 +9,6 @@ #include <FileSystem.h> #include "Env.h" -#include "minecraft/MinecraftVersion.h" #include "LegacyFTBInstance.h" #include "OneSixFTBInstance.h" @@ -246,17 +245,8 @@ InstancePtr FTBInstanceProvider::createInstance(const FTBRecord & record) const m_settings->registerSetting("InstanceType", "Legacy"); // all legacy versions are built in. therefore we can do this even if we don't have ALL the versions Mojang has on their servers. - auto mcVersion = std::dynamic_pointer_cast<MinecraftVersion>(ENV.getVersion("net.minecraft", record.mcVersion)); - if (mcVersion && mcVersion->usesLegacyLauncher()) - { - m_settings->set("InstanceType", "LegacyFTB"); - inst.reset(new LegacyFTBInstance(m_globalSettings, m_settings, record.instanceDir)); - } - else - { - m_settings->set("InstanceType", "OneSixFTB"); - inst.reset(new OneSixFTBInstance(m_globalSettings, m_settings, record.instanceDir)); - } + m_settings->set("InstanceType", "OneSixFTB"); + inst.reset(new OneSixFTBInstance(m_globalSettings, m_settings, record.instanceDir)); // initialize { |