summaryrefslogtreecommitdiffstats
path: root/logic/ForgeInstaller.cpp
diff options
context:
space:
mode:
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);