diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-12-22 04:31:30 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-12-22 04:31:30 +0100 |
commit | 74b5b5f535ec8d98ba93c629804c75fda9e32475 (patch) | |
tree | d24bf1a9219595db0b1e8356e78c8c34698a6a7c /logic/OneSixFTBInstance.cpp | |
parent | 82c87aa06f793b9f38e6cb42d284f00695f4bac5 (diff) | |
download | MultiMC-74b5b5f535ec8d98ba93c629804c75fda9e32475.tar MultiMC-74b5b5f535ec8d98ba93c629804c75fda9e32475.tar.gz MultiMC-74b5b5f535ec8d98ba93c629804c75fda9e32475.tar.lz MultiMC-74b5b5f535ec8d98ba93c629804c75fda9e32475.tar.xz MultiMC-74b5b5f535ec8d98ba93c629804c75fda9e32475.zip |
Make FTB instances behave better
* Do not re-create on every reload
* Use the version.json/custom.json logic properly
* Should be offline-friendly
* FTB instances can be copied, turn into normal instances
Diffstat (limited to 'logic/OneSixFTBInstance.cpp')
-rw-r--r-- | logic/OneSixFTBInstance.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/logic/OneSixFTBInstance.cpp b/logic/OneSixFTBInstance.cpp index 567004b9..0090c1d8 100644 --- a/logic/OneSixFTBInstance.cpp +++ b/logic/OneSixFTBInstance.cpp @@ -57,7 +57,10 @@ slots: emitFailed(tr("Couldn't load the version config")); return; } - if (!forge.apply(instance->getFullVersion())) + instance->revertCustomVersion(); + instance->customizeVersion(); + auto version = instance->getFullVersion(); + if (!forge.apply(version)) { emitFailed(tr("Couldn't install Forge")); return; |