aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/modrinth/ModrinthInstanceCreationTask.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-08-18 22:56:55 +0200
committerGitHub <noreply@github.com>2023-08-18 22:56:55 +0200
commit3098aecf9760074a291bd8460ce749e556baad3a (patch)
tree6796142de8c68e1c852b2fdf1d2bc4aa82d2975d /launcher/modplatform/modrinth/ModrinthInstanceCreationTask.cpp
parenteb4efa5a9c95f81a1cf628957de19541cc0f5f89 (diff)
parentbe2888d6fbf28e515206d8677f8f6c8fce8b6e89 (diff)
downloadPrismLauncher-3098aecf9760074a291bd8460ce749e556baad3a.tar.gz
PrismLauncher-3098aecf9760074a291bd8460ce749e556baad3a.tar.bz2
PrismLauncher-3098aecf9760074a291bd8460ce749e556baad3a.zip
Merge pull request #1498 from Scrumplex/neoforge
Diffstat (limited to 'launcher/modplatform/modrinth/ModrinthInstanceCreationTask.cpp')
-rw-r--r--launcher/modplatform/modrinth/ModrinthInstanceCreationTask.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthInstanceCreationTask.cpp b/launcher/modplatform/modrinth/ModrinthInstanceCreationTask.cpp
index cdbbd42d..9ff6b374 100644
--- a/launcher/modplatform/modrinth/ModrinthInstanceCreationTask.cpp
+++ b/launcher/modplatform/modrinth/ModrinthInstanceCreationTask.cpp
@@ -211,6 +211,8 @@ bool ModrinthCreationTask::createInstance()
components->setComponentVersion("org.quiltmc.quilt-loader", m_quilt_version);
if (!m_forge_version.isEmpty())
components->setComponentVersion("net.minecraftforge", m_forge_version);
+ if (!m_neoForge_version.isEmpty())
+ components->setComponentVersion("net.neoforged", m_neoForge_version);
if (m_instIcon != "default") {
instance.setIconKey(m_instIcon);
@@ -398,6 +400,8 @@ bool ModrinthCreationTask::parseManifest(const QString& index_path,
m_quilt_version = Json::requireString(*it, "Quilt Loader version");
} else if (name == "forge") {
m_forge_version = Json::requireString(*it, "Forge version");
+ } else if (name == "neoforge") {
+ m_neoForge_version = Json::requireString(*it, "NeoForge version");
} else {
throw JSONValidationError("Unknown dependency type: " + name);
}