Fix library ordering
This commit is contained in:
parent
176783c8ca
commit
986141b503
3 changed files with 17 additions and 29 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue