summaryrefslogtreecommitdiffstats
path: root/api/logic/InstanceCreationTask.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'api/logic/InstanceCreationTask.cpp')
-rw-r--r--api/logic/InstanceCreationTask.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/api/logic/InstanceCreationTask.cpp b/api/logic/InstanceCreationTask.cpp
index a7ea1e66..21892f82 100644
--- a/api/logic/InstanceCreationTask.cpp
+++ b/api/logic/InstanceCreationTask.cpp
@@ -4,7 +4,7 @@
#include "FileSystem.h"
//FIXME: remove this
-#include "minecraft/onesix/OneSixInstance.h"
+#include "minecraft/MinecraftInstance.h"
InstanceCreationTask::InstanceCreationTask(SettingsObjectPtr settings, const QString & stagingPath, BaseVersionPtr version,
const QString& instName, const QString& instIcon, const QString& instGroup)
@@ -25,11 +25,11 @@ void InstanceCreationTask::executeTask()
instanceSettings->suspendSave();
instanceSettings->registerSetting("InstanceType", "Legacy");
instanceSettings->set("InstanceType", "OneSix");
- OneSixInstance inst(m_globalSettings, instanceSettings, m_stagingPath);
- inst.setIntendedVersionId(m_version->descriptor());
- inst.setName(m_instName);
- inst.setIconKey(m_instIcon);
- inst.init();
+ auto inst = new MinecraftInstance(m_globalSettings, instanceSettings, m_stagingPath);
+ inst->setComponentVersion("net.minecraft", m_version->descriptor());
+ inst->setName(m_instName);
+ inst->setIconKey(m_instIcon);
+ inst->init();
instanceSettings->resumeSave();
}
emitSucceeded();