reverted change for optional
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
aa065f2b51
commit
6178e5a975
@ -44,6 +44,7 @@
|
|||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <optional>
|
||||||
|
|
||||||
#include "Component.h"
|
#include "Component.h"
|
||||||
#include "LaunchProfile.h"
|
#include "LaunchProfile.h"
|
||||||
|
@ -41,8 +41,7 @@ static Version mcVersion(BaseInstance* inst)
|
|||||||
|
|
||||||
static ModPlatform::ModLoaderTypes mcLoaders(BaseInstance* inst)
|
static ModPlatform::ModLoaderTypes mcLoaders(BaseInstance* inst)
|
||||||
{
|
{
|
||||||
return static_cast<MinecraftInstance*>(inst)->getPackProfile()->getSupportedModLoaders().value_or(
|
return static_cast<MinecraftInstance*>(inst)->getPackProfile()->getSupportedModLoaders().value();
|
||||||
ModPlatform::ModLoaderTypes::fromInt(0));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GetModDependenciesTask::GetModDependenciesTask(QObject* parent,
|
GetModDependenciesTask::GetModDependenciesTask(QObject* parent,
|
||||||
|
@ -154,7 +154,7 @@ void Flame::FileResolvingTask::modrinthCheckFinished()
|
|||||||
// If there's more than one mod loader for this version, we can't know for sure
|
// If there's more than one mod loader for this version, we can't know for sure
|
||||||
// which file is relative to each loader, so it's best to not use any one and
|
// which file is relative to each loader, so it's best to not use any one and
|
||||||
// let the user download it manually.
|
// let the user download it manually.
|
||||||
if (std::bitset<8>(file.loaders.toInt()).count() <= 1) {
|
if (std::bitset<8>(file.loaders).count() <= 1) {
|
||||||
out->url = file.downloadUrl;
|
out->url = file.downloadUrl;
|
||||||
qDebug() << "Found alternative on modrinth " << out->fileName;
|
qDebug() << "Found alternative on modrinth " << out->fileName;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user