summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/VersionFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/minecraft/VersionFile.cpp')
-rw-r--r--logic/minecraft/VersionFile.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/logic/minecraft/VersionFile.cpp b/logic/minecraft/VersionFile.cpp
index 9cd8dd5e..8476632e 100644
--- a/logic/minecraft/VersionFile.cpp
+++ b/logic/minecraft/VersionFile.cpp
@@ -32,12 +32,11 @@ void VersionFile::applyTo(MinecraftProfile *version)
throw MinecraftVersionMismatch(fileId, mcVersion, theirVersion);
}
}
- bool is_minecraft = isMinecraftVersion();
version->applyMinecraftVersion(id);
version->applyMainClass(mainClass);
version->applyAppletClass(appletClass);
- version->applyMinecraftArguments(minecraftArguments, is_minecraft);
- if (is_minecraft)
+ version->applyMinecraftArguments(minecraftArguments);
+ if (isMinecraftVersion())
{
version->applyMinecraftVersionType(type);
}
@@ -47,8 +46,8 @@ void VersionFile::applyTo(MinecraftProfile *version)
version->applyJarMods(jarMods);
version->applyTraits(traits);
- for (auto addedLibrary : addLibs)
+ for (auto library : libraries)
{
- version->applyLibrary(addedLibrary, isMinecraftVersion());
+ version->applyLibrary(library);
}
}