From 791221e923586bb717396ecf18bd13e57034df99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Tue, 27 Jan 2015 22:31:07 +0100 Subject: NOISSUE Refactors and moving of things --- logic/LegacyUpdate.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'logic/LegacyUpdate.cpp') diff --git a/logic/LegacyUpdate.cpp b/logic/LegacyUpdate.cpp index a6dae1b4..30f781ab 100644 --- a/logic/LegacyUpdate.cpp +++ b/logic/LegacyUpdate.cpp @@ -409,7 +409,7 @@ void LegacyUpdate::ModTheJar() } // Get the mod list - auto modList = inst->jarModList(); + auto modList = inst->getJarMods(); QFileInfo runnableJar(inst->runnableJar()); QFileInfo baseJar(inst->baseJar()); @@ -421,7 +421,7 @@ void LegacyUpdate::ModTheJar() // yes, this can happen if the instance only has the runnable jar and not the base jar // it *could* be assumed that such an instance is vanilla, but that wouldn't be safe // because that's not something mmc4 guarantees - if (runnableJar.isFile() && !baseJar.exists() && modList->empty()) + if (runnableJar.isFile() && !baseJar.exists() && modList.empty()) { inst->setShouldRebuild(false); emitSucceeded(); @@ -452,14 +452,12 @@ void LegacyUpdate::ModTheJar() return; } - // TaskStep(); // STEP 1 setStatus(tr("Installing mods: Opening minecraft.jar ...")); - const auto & mods = modList->allMods(); QString outputJarPath = runnableJar.filePath(); QString inputJarPath = baseJar.filePath(); - if(!JarUtils::createModdedJar(inputJarPath, outputJarPath, mods)) + if(!JarUtils::createModdedJar(inputJarPath, outputJarPath, modList)) { emitFailed(tr("Failed to create the custom Minecraft jar file.")); return; -- cgit v1.2.3