summaryrefslogtreecommitdiffstats
path: root/api/logic
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-03-12 20:08:56 +0100
committerPetr Mrázek <peterix@gmail.com>2017-04-07 00:20:01 +0200
commitf6eb8fa1e43a412edb49401107de30d497f0f593 (patch)
tree9767ea2911be69485a7c33e0ade5b7554b0d67f8 /api/logic
parent2980322c3b34b252ead838daee7a844853feccf6 (diff)
downloadMultiMC-f6eb8fa1e43a412edb49401107de30d497f0f593.tar
MultiMC-f6eb8fa1e43a412edb49401107de30d497f0f593.tar.gz
MultiMC-f6eb8fa1e43a412edb49401107de30d497f0f593.tar.lz
MultiMC-f6eb8fa1e43a412edb49401107de30d497f0f593.tar.xz
MultiMC-f6eb8fa1e43a412edb49401107de30d497f0f593.zip
NOISSUE Remove hardcoded LWJGL (modern)
Diffstat (limited to 'api/logic')
-rw-r--r--api/logic/minecraft/onesix/OneSixProfileStrategy.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/api/logic/minecraft/onesix/OneSixProfileStrategy.cpp b/api/logic/minecraft/onesix/OneSixProfileStrategy.cpp
index 2b023e82..e3d3f674 100644
--- a/api/logic/minecraft/onesix/OneSixProfileStrategy.cpp
+++ b/api/logic/minecraft/onesix/OneSixProfileStrategy.cpp
@@ -121,12 +121,8 @@ void OneSixProfileStrategy::loadDefaultBuiltinPatches()
}
else
{
- // NOTE: this is obviously fake, is fixed in unstable.
- QResource LWJGL(":/versions/LWJGL/2.9.1.json");
- auto lwjgl = ProfileUtils::parseJsonFile(LWJGL.absoluteFilePath(), false);
- lwjgl->setVanilla(true);
- lwjgl->setCustomizable(true);
- lwjglPatch = std::dynamic_pointer_cast<ProfilePatch>(lwjgl);
+ auto lwjglversion = ENV.getVersion("org.lwjgl", "2.9.1" /*m_instance->intendedVersionId()*/);
+ lwjglPatch = std::dynamic_pointer_cast<ProfilePatch>(lwjglversion);
}
if (!lwjglPatch)
{