diff options
author | Petr Mrázek <peterix@gmail.com> | 2019-08-03 03:12:48 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-08-03 03:12:48 +0200 |
commit | 40c9af1a8b2f42f4c90c8d358eac43370c04a227 (patch) | |
tree | 4f1b2b81a9bff4645e22cbb63c9c585d060aac2c /api/logic/minecraft/legacy/LegacyUpgradeTask.cpp | |
parent | f5f3149dcf618172539e740e12f539e96aea43ba (diff) | |
download | MultiMC-40c9af1a8b2f42f4c90c8d358eac43370c04a227.tar MultiMC-40c9af1a8b2f42f4c90c8d358eac43370c04a227.tar.gz MultiMC-40c9af1a8b2f42f4c90c8d358eac43370c04a227.tar.lz MultiMC-40c9af1a8b2f42f4c90c8d358eac43370c04a227.tar.xz MultiMC-40c9af1a8b2f42f4c90c8d358eac43370c04a227.zip |
NOISSUE remove dependency of legacy mod list on the Mod class
Diffstat (limited to 'api/logic/minecraft/legacy/LegacyUpgradeTask.cpp')
-rw-r--r-- | api/logic/minecraft/legacy/LegacyUpgradeTask.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/api/logic/minecraft/legacy/LegacyUpgradeTask.cpp b/api/logic/minecraft/legacy/LegacyUpgradeTask.cpp index 9a832a24..9d86a7b5 100644 --- a/api/logic/minecraft/legacy/LegacyUpgradeTask.cpp +++ b/api/logic/minecraft/legacy/LegacyUpgradeTask.cpp @@ -7,6 +7,7 @@ #include "LegacyInstance.h" #include "minecraft/MinecraftInstance.h" #include "minecraft/ComponentList.h" +#include "LegacyModList.h" #include "classparser.h" LegacyUpgradeTask::LegacyUpgradeTask(InstancePtr origInstance) @@ -96,10 +97,10 @@ void LegacyUpgradeTask::copyFinished() components->installCustomJar(jarPath); } - auto jarMods = legacyInst->getJarMods(); + auto jarMods = legacyInst->jarModList()->allMods(); for(auto & jarMod: jarMods) { - QString modPath = jarMod.filename().absoluteFilePath(); + QString modPath = jarMod.absoluteFilePath(); qDebug() << "jarMod: " << modPath; components->installJarMods({modPath}); } |