refactor: cleanup ModLoaderType

This commit is contained in:
Sefa Eyeoglu
2022-04-14 21:55:03 +02:00
parent 18ac109e5a
commit 9fb5674233
5 changed files with 31 additions and 35 deletions

View File

@ -391,7 +391,7 @@ void ModFolderPage::on_actionInstall_mods_triggered()
return; //this is a null instance or a legacy instance
}
auto profile = ((MinecraftInstance *)m_inst)->getPackProfile();
if (profile->getModLoader() == ModAPI::Any) {
if (profile->getModLoader() == ModAPI::Unspecified) {
QMessageBox::critical(this,tr("Error"),tr("Please install a mod loader first!"));
return;
}