| 1051 | } |
| 1052 | |
| 1053 | QList<ModPlatform::ModLoaderType> PackProfile::getModLoadersList() |
| 1054 | { |
| 1055 | QList<ModPlatform::ModLoaderType> result; |
| 1056 | for (auto c : d->components) { |
| 1057 | if (c->isEnabled() && Component::KNOWN_MODLOADERS.contains(c->getID())) { |
| 1058 | result.append(Component::KNOWN_MODLOADERS[c->getID()].type); |
| 1059 | } |
| 1060 | } |
| 1061 | |
| 1062 | // TODO: remove this or add version condition once Quilt drops official Fabric support |
| 1063 | if (result.contains(ModPlatform::Quilt) && !result.contains(ModPlatform::Fabric)) { |
| 1064 | result.append(ModPlatform::Fabric); |
| 1065 | } |
| 1066 | if (getComponentVersion("net.minecraft") == "1.20.1" && result.contains(ModPlatform::NeoForge) && |
| 1067 | !result.contains(ModPlatform::Forge)) { |
| 1068 | result.append(ModPlatform::Forge); |
| 1069 | } |
| 1070 | return result; |
| 1071 | } |
no test coverage detected