summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/update/FMLLibrariesTask.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'api/logic/minecraft/update/FMLLibrariesTask.cpp')
-rw-r--r--api/logic/minecraft/update/FMLLibrariesTask.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/api/logic/minecraft/update/FMLLibrariesTask.cpp b/api/logic/minecraft/update/FMLLibrariesTask.cpp
index 56ecee43..1bd339e4 100644
--- a/api/logic/minecraft/update/FMLLibrariesTask.cpp
+++ b/api/logic/minecraft/update/FMLLibrariesTask.cpp
@@ -15,7 +15,6 @@ void FMLLibrariesTask::executeTask()
MinecraftInstance *inst = (MinecraftInstance *)m_inst;
auto components = inst->getComponentList();
auto profile = components->getProfile();
- bool forge_present = false;
if (!profile->hasTrait("legacyFML"))
{
@@ -23,7 +22,7 @@ void FMLLibrariesTask::executeTask()
return;
}
- QString version = inst->getComponentVersion("net.minecraft");
+ QString version = components->getComponentVersion("net.minecraft");
auto &fmlLibsMapping = g_VersionFilterData.fmlLibsMapping;
if (!fmlLibsMapping.contains(version))
{
@@ -35,9 +34,7 @@ void FMLLibrariesTask::executeTask()
// determine if we need some libs for FML or forge
setStatus(tr("Checking for FML libraries..."));
- forge_present = (components->versionPatch("net.minecraftforge") != nullptr);
- // we don't...
- if (!forge_present)
+ if(!components->getComponent("net.minecraftforge"))
{
emitSucceeded();
return;