fix: check for Quilt as Fabric-compatible loader

This commit is contained in:
Sefa Eyeoglu
2022-02-20 20:55:26 +01:00
parent 74cdf5350d
commit 35cfb41a9c
11 changed files with 54 additions and 18 deletions

View File

@ -55,11 +55,13 @@ class ModrinthAPI : public NetworkModAPI {
{
switch (modLoader) {
case Any:
return "fabric, forge";
return "fabric, forge, quilt";
case Forge:
return "forge";
case Fabric:
return "fabric";
case Quilt:
return "quilt";
default:
return "";
}
@ -67,7 +69,7 @@ class ModrinthAPI : public NetworkModAPI {
inline auto validateModLoader(ModLoaderType modLoader) const -> bool
{
return modLoader == Any || modLoader == Forge || modLoader == Fabric;
return modLoader == Any || modLoader == Forge || modLoader == Fabric || modLoader == Quilt;
}
};