mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-13 05:37:42 +02:00
Allow data packs on vanilla instances
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
@ -68,10 +68,6 @@ void DataPackPage::downloadDataPacks()
|
|||||||
return; // this is a null instance or a legacy instance
|
return; // this is a null instance or a legacy instance
|
||||||
|
|
||||||
auto profile = static_cast<MinecraftInstance*>(m_instance)->getPackProfile();
|
auto profile = static_cast<MinecraftInstance*>(m_instance)->getPackProfile();
|
||||||
if (!profile->getModLoaders().has_value()) {
|
|
||||||
QMessageBox::critical(this, tr("Error"), tr("Please install a mod loader first!"));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
m_downloadDialog = new ResourceDownload::DataPackDownloadDialog(this, m_model, m_instance);
|
m_downloadDialog = new ResourceDownload::DataPackDownloadDialog(this, m_model, m_instance);
|
||||||
connect(this, &QObject::destroyed, m_downloadDialog, &QDialog::close);
|
connect(this, &QObject::destroyed, m_downloadDialog, &QDialog::close);
|
||||||
|
Reference in New Issue
Block a user