fix: adapt upstream Modrinth code to our codebase

This commit is contained in:
Sefa Eyeoglu
2022-05-14 19:56:38 +02:00
parent db03846358
commit 31988f0529
8 changed files with 72 additions and 34 deletions

View File

@ -581,8 +581,6 @@ void InstanceImportTask::processModrinth() {
QString configPath = FS::PathCombine(m_stagingPath, "instance.cfg");
auto instanceSettings = std::make_shared<INISettingsObject>(configPath);
instanceSettings->registerSetting("InstanceType", "Legacy");
instanceSettings->set("InstanceType", "OneSix");
MinecraftInstance instance(m_globalSettings, instanceSettings, m_stagingPath);
auto components = instance.getPackProfile();
components->buildingFromScratch();