mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-10-04 17:09:25 +00:00
Add a MMC-depend field (soft/hard) for version checking
This commit is contained in:
@@ -63,7 +63,7 @@ bool LiteLoaderInstaller::add(OneSixInstance *to)
|
||||
OneSixLibrary launchwrapperLib("net.minecraft:launchwrapper:" + m_launcherWrapperVersionMapping[to->intendedVersionId()]);
|
||||
launchwrapperLib.finalize();
|
||||
QJsonObject lwLibObj = launchwrapperLib.toJson();
|
||||
lwLibObj.insert("insert", QString("prepend-if-not-exists"));
|
||||
lwLibObj.insert("insert", QString("prepend"));
|
||||
libraries.append(lwLibObj);
|
||||
}
|
||||
|
||||
@@ -74,6 +74,7 @@ bool LiteLoaderInstaller::add(OneSixInstance *to)
|
||||
liteloaderLib.finalize();
|
||||
QJsonObject llLibObj = liteloaderLib.toJson();
|
||||
llLibObj.insert("insert", QString("prepend"));
|
||||
llLibObj.insert("MMC-depend", QString("hard"));
|
||||
libraries.append(llLibObj);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user