summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/forge
diff options
context:
space:
mode:
Diffstat (limited to 'logic/minecraft/forge')
-rw-r--r--logic/minecraft/forge/ForgeInstaller.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/logic/minecraft/forge/ForgeInstaller.cpp b/logic/minecraft/forge/ForgeInstaller.cpp
index 468414f8..bc0a967e 100644
--- a/logic/minecraft/forge/ForgeInstaller.cpp
+++ b/logic/minecraft/forge/ForgeInstaller.cpp
@@ -77,7 +77,7 @@ void ForgeInstaller::prepare(const QString &filename, const QString &universalUr
// read the forge version info
{
- newVersion = OneSixVersionFormat::readProfileFromSingleFile(versionInfoVal.toObject());
+ newVersion = OneSixVersionFormat::profileFromSingleJson(versionInfoVal.toObject());
if (!newVersion)
return;
}
@@ -192,7 +192,7 @@ bool ForgeInstaller::add(OneSixInstance *to)
}
}
- QJsonObject libObj = lib->toJson();
+ QJsonObject libObj = OneSixVersionFormat::libraryToJson(lib.get());
bool found = false;
bool equals = false;
@@ -202,7 +202,7 @@ bool ForgeInstaller::add(OneSixInstance *to)
if (tolib->artifactId() != libName)
continue;
found = true;
- if (tolib->toJson() == libObj)
+ if (OneSixVersionFormat::libraryToJson(tolib.get()) == libObj)
{
equals = true;
}