removed quilt warning
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
c778dcbc9c
commit
e6b4fc9182
@ -1342,16 +1342,10 @@ void MainWindow::on_actionExportInstanceFlamePack_triggered()
|
|||||||
if (m_selectedInstance) {
|
if (m_selectedInstance) {
|
||||||
auto instance = dynamic_cast<MinecraftInstance*>(m_selectedInstance.get());
|
auto instance = dynamic_cast<MinecraftInstance*>(m_selectedInstance.get());
|
||||||
if (instance) {
|
if (instance) {
|
||||||
QString errorMsg;
|
if (auto cmp = instance->getPackProfile()->getComponent("net.minecraft");
|
||||||
if (instance->getPackProfile()->getComponent("org.quiltmc.quilt-loader")) {
|
|
||||||
errorMsg = tr("Quilt is currently not supported by CurseForge modpacks.");
|
|
||||||
} else if (auto cmp = instance->getPackProfile()->getComponent("net.minecraft");
|
|
||||||
cmp && cmp->getVersionFile() && cmp->getVersionFile()->type == "snapshot") {
|
cmp && cmp->getVersionFile() && cmp->getVersionFile()->type == "snapshot") {
|
||||||
errorMsg = tr("Snapshots are currently not supported by CurseForge modpacks.");
|
|
||||||
}
|
|
||||||
if (!errorMsg.isEmpty()) {
|
|
||||||
QMessageBox msgBox;
|
QMessageBox msgBox;
|
||||||
msgBox.setText(errorMsg);
|
msgBox.setText("Snapshots are currently not supported by CurseForge modpacks.");
|
||||||
msgBox.exec();
|
msgBox.exec();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user