summaryrefslogtreecommitdiffstats
path: root/logic/liteloader/LiteLoaderInstaller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/liteloader/LiteLoaderInstaller.cpp')
-rw-r--r--logic/liteloader/LiteLoaderInstaller.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/logic/liteloader/LiteLoaderInstaller.cpp b/logic/liteloader/LiteLoaderInstaller.cpp
index 28be614a..555d16c1 100644
--- a/logic/liteloader/LiteLoaderInstaller.cpp
+++ b/logic/liteloader/LiteLoaderInstaller.cpp
@@ -21,7 +21,7 @@
#include <QDebug>
#include "minecraft/MinecraftProfile.h"
-#include "minecraft/OneSixLibrary.h"
+#include "minecraft/RawLibrary.h"
#include "minecraft/OneSixInstance.h"
#include "liteloader/LiteLoaderVersionList.h"
#include "Exception.h"
@@ -51,19 +51,14 @@ bool LiteLoaderInstaller::add(OneSixInstance *to)
for (auto rawLibrary : m_version->libraries)
{
- OneSixLibrary lib(rawLibrary);
- libraries.append(lib.toJson());
+ libraries.append(rawLibrary->toJson());
}
// liteloader
{
- OneSixLibrary liteloaderLib("com.mumfrey:liteloader:" + m_version->version);
- liteloaderLib.setAbsoluteUrl(
- QString("http://dl.liteloader.com/versions/com/mumfrey/liteloader/%1/%2")
- .arg(m_version->mcVersion, m_version->file));
+ RawLibrary liteloaderLib("com.mumfrey:liteloader:" + m_version->version);
+ liteloaderLib.setAbsoluteUrl(QString("http://dl.liteloader.com/versions/com/mumfrey/liteloader/%1/%2").arg(m_version->mcVersion, m_version->file));
QJsonObject llLibObj = liteloaderLib.toJson();
- llLibObj.insert("insert", QString("prepend"));
- llLibObj.insert("MMC-depend", QString("hard"));
libraries.append(llLibObj);
}