From 17c8f31a09da6bdfc4aa7f67b2ca86b791f2ba96 Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Sat, 4 Nov 2017 22:55:25 +0100 Subject: NOISSUE split out the LaunchProfile out of the ComponentList --- api/logic/minecraft/update/FMLLibrariesTask.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'api/logic/minecraft/update/FMLLibrariesTask.cpp') diff --git a/api/logic/minecraft/update/FMLLibrariesTask.cpp b/api/logic/minecraft/update/FMLLibrariesTask.cpp index e64b7a82..56ecee43 100644 --- a/api/logic/minecraft/update/FMLLibrariesTask.cpp +++ b/api/logic/minecraft/update/FMLLibrariesTask.cpp @@ -13,7 +13,8 @@ void FMLLibrariesTask::executeTask() { // Get the mod list MinecraftInstance *inst = (MinecraftInstance *)m_inst; - std::shared_ptr 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) { -- cgit