summaryrefslogtreecommitdiffstats
path: root/logic/InstanceFactory.cpp
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2014-02-21 19:15:59 +0100
committerJan Dalheimer <jan@dalheimer.de>2014-02-21 19:15:59 +0100
commit4883d1526222f9804f304f4cc189d6e44cb22b97 (patch)
tree3337cb34d9fdf4947c30b6e36f7747782cb212d4 /logic/InstanceFactory.cpp
parentf54705e1c5311e023b2e1ebd5d4db226a7c7149e (diff)
downloadMultiMC-4883d1526222f9804f304f4cc189d6e44cb22b97.tar
MultiMC-4883d1526222f9804f304f4cc189d6e44cb22b97.tar.gz
MultiMC-4883d1526222f9804f304f4cc189d6e44cb22b97.tar.lz
MultiMC-4883d1526222f9804f304f4cc189d6e44cb22b97.tar.xz
MultiMC-4883d1526222f9804f304f4cc189d6e44cb22b97.zip
Copying of FTB instances working again
Diffstat (limited to 'logic/InstanceFactory.cpp')
-rw-r--r--logic/InstanceFactory.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/logic/InstanceFactory.cpp b/logic/InstanceFactory.cpp
index 2c89bf43..d6e06133 100644
--- a/logic/InstanceFactory.cpp
+++ b/logic/InstanceFactory.cpp
@@ -184,6 +184,8 @@ InstanceFactory::InstCreateError InstanceFactory::copyInstance(BaseInstance *&ne
if(inst_type == "LegacyFTB")
m_settings->set("InstanceType", "Legacy");
+ oldInstance->copy(instDir);
+
auto error = loadInstance(newInstance, instDir);
switch (error)