Added loaders check on versions load

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97
2023-08-23 12:52:51 +03:00
parent f8f9ffa118
commit e6ba2f4970
20 changed files with 89 additions and 89 deletions

View File

@ -41,7 +41,8 @@ static Version mcVersion(BaseInstance* inst)
static ModPlatform::ModLoaderTypes mcLoaders(BaseInstance* inst)
{
return static_cast<MinecraftInstance*>(inst)->getPackProfile()->getModLoaders().value();
return static_cast<MinecraftInstance*>(inst)->getPackProfile()->getSupportedModLoaders().value_or(
ModPlatform::ModLoaderTypes::fromInt(0));
}
GetModDependenciesTask::GetModDependenciesTask(QObject* parent,