aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/modrinth
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-04-15 12:38:27 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2022-04-16 23:40:10 +0200
commitcab9afa45f7a7dfcb87080804f3a6ef90f953819 (patch)
treea97a3903cab017891973647ae3515cf38ae2dbae /launcher/modplatform/modrinth
parenta42d2afceee9f6ea0d209cfb03b178defff1ce60 (diff)
downloadPrismLauncher-cab9afa45f7a7dfcb87080804f3a6ef90f953819.tar.gz
PrismLauncher-cab9afa45f7a7dfcb87080804f3a6ef90f953819.tar.bz2
PrismLauncher-cab9afa45f7a7dfcb87080804f3a6ef90f953819.zip
fix: query for Fabric mods if Quilt is in use
Right now we want to include Fabric mods in our searches where possible. Modrinth allows definining multiple loaders, while Flame only allows a single value. As a compromise we ask for Fabric mods only on Flame and for both Fabric and Quilt mods on Modrinth.
Diffstat (limited to 'launcher/modplatform/modrinth')
-rw-r--r--launcher/modplatform/modrinth/ModrinthAPI.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthAPI.h b/launcher/modplatform/modrinth/ModrinthAPI.h
index 6604d772..84dd7d03 100644
--- a/launcher/modplatform/modrinth/ModrinthAPI.h
+++ b/launcher/modplatform/modrinth/ModrinthAPI.h
@@ -54,6 +54,9 @@ class ModrinthAPI : public NetworkModAPI {
{
if (type == Unspecified)
return "fabric, forge, quilt";
+ // TODO: remove this once Quilt drops official Fabric support
+ if (type == Quilt) // NOTE: Most if not all Fabric mods should work *currently*
+ return "fabric, quilt";
return ModAPI::getModLoaderString(type);
}