NOISSUE split out the LaunchProfile out of the ComponentList
This commit is contained in:
parent
3470158943
commit
17c8f31a09
16 changed files with 493 additions and 422 deletions
|
@ -13,7 +13,8 @@ void FMLLibrariesTask::executeTask()
|
|||
{
|
||||
// Get the mod list
|
||||
MinecraftInstance *inst = (MinecraftInstance *)m_inst;
|
||||
std::shared_ptr<ComponentList> profile = inst->getComponentList();
|
||||
auto components = inst->getComponentList();
|
||||
auto profile = components->getProfile();
|
||||
bool forge_present = false;
|
||||
|
||||
if (!profile->hasTrait("legacyFML"))
|
||||
|
@ -34,7 +35,7 @@ void FMLLibrariesTask::executeTask()
|
|||
|
||||
// determine if we need some libs for FML or forge
|
||||
setStatus(tr("Checking for FML libraries..."));
|
||||
forge_present = (profile->versionPatch("net.minecraftforge") != nullptr);
|
||||
forge_present = (components->versionPatch("net.minecraftforge") != nullptr);
|
||||
// we don't...
|
||||
if (!forge_present)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue