summaryrefslogtreecommitdiffstats
path: root/logic/ForgeInstaller.cpp
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2014-01-27 22:23:07 +0100
committerJan Dalheimer <jan@dalheimer.de>2014-01-27 22:23:07 +0100
commit986141b5035c99747c7e06cd447b8b4e27eb2b27 (patch)
tree3de534a0192bb62d4654342bf0d89b7e46d41cae /logic/ForgeInstaller.cpp
parent176783c8caacafd5d320c2fef7374335ee54796b (diff)
downloadMultiMC-986141b5035c99747c7e06cd447b8b4e27eb2b27.tar
MultiMC-986141b5035c99747c7e06cd447b8b4e27eb2b27.tar.gz
MultiMC-986141b5035c99747c7e06cd447b8b4e27eb2b27.tar.lz
MultiMC-986141b5035c99747c7e06cd447b8b4e27eb2b27.tar.xz
MultiMC-986141b5035c99747c7e06cd447b8b4e27eb2b27.zip
Fix library ordering
Diffstat (limited to 'logic/ForgeInstaller.cpp')
-rw-r--r--logic/ForgeInstaller.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/logic/ForgeInstaller.cpp b/logic/ForgeInstaller.cpp
index c0340e95..8d2445ed 100644
--- a/logic/ForgeInstaller.cpp
+++ b/logic/ForgeInstaller.cpp
@@ -160,7 +160,7 @@ bool ForgeInstaller::add(OneSixInstance *to)
equals = true;
}
// replace lib
- libObj.insert("insert", QString("apply"));
+ libObj.insert("insert", QString("replace"));
break;
}
if (equals)
@@ -170,11 +170,7 @@ bool ForgeInstaller::add(OneSixInstance *to)
if (!found)
{
// add lib
- QJsonObject insertObj;
- insertObj.insert(
- "before",
- to->getFullVersion()->libraries.at(sliding_insert_window + 1)->rawName());
- libObj.insert("insert", insertObj);
+ libObj.insert("insert", QString("prepend-if-not-exists"));
sliding_insert_window++;
}
librariesPlus.prepend(libObj);