feat: initial Quilt support

This commit is contained in:
Sefa Eyeoglu
2022-02-20 17:51:26 +01:00
parent cc5261051f
commit 9eb9ddc668
4 changed files with 49 additions and 0 deletions

View File

@ -600,6 +600,15 @@ void ComponentUpdateTask::resolveDependencies(bool checkOnly)
component->m_version = (*minecraft)->getVersion();
}
}
else if (add.uid == "org.quiltmc.quilt-mappings")
{
auto minecraft = std::find_if(components.begin(), components.end(), [](ComponentPtr & cmp){
return cmp->getID() == "net.minecraft";
});
if(minecraft != components.end()) {
component->m_version = (*minecraft)->getVersion() + "+build.1";
}
}
}
// HACK HACK HACK HACK FIXME: this is a placeholder for deciding what version to use. For now, it is hardcoded.
// ############################################################################################################