diff options
author | Petr Mrázek <peterix@gmail.com> | 2019-06-15 21:25:23 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-06-15 21:25:23 +0200 |
commit | 6c30076b6c49c3a5a9b1f18d0e33f6663a7ba90a (patch) | |
tree | 58b12dfd07f7b3611d2a4b5bc5748526b2ce9620 /api/logic/minecraft/ComponentUpdateTask.cpp | |
parent | 83c48a0f1a7822d5442e604da430d20959132c1e (diff) | |
download | MultiMC-6c30076b6c49c3a5a9b1f18d0e33f6663a7ba90a.tar MultiMC-6c30076b6c49c3a5a9b1f18d0e33f6663a7ba90a.tar.gz MultiMC-6c30076b6c49c3a5a9b1f18d0e33f6663a7ba90a.tar.lz MultiMC-6c30076b6c49c3a5a9b1f18d0e33f6663a7ba90a.tar.xz MultiMC-6c30076b6c49c3a5a9b1f18d0e33f6663a7ba90a.zip |
GH-2639 Add simple fabric loader installation support
Diffstat (limited to 'api/logic/minecraft/ComponentUpdateTask.cpp')
-rw-r--r-- | api/logic/minecraft/ComponentUpdateTask.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/api/logic/minecraft/ComponentUpdateTask.cpp b/api/logic/minecraft/ComponentUpdateTask.cpp index 37cc488d..15003160 100644 --- a/api/logic/minecraft/ComponentUpdateTask.cpp +++ b/api/logic/minecraft/ComponentUpdateTask.cpp @@ -586,6 +586,15 @@ void ComponentUpdateTask::resolveDependencies(bool checkOnly) { component->m_version = "3.1.2"; } + else if (add.uid == "net.fabricmc.intermediary") + { + auto minecraft = std::find_if(components.begin(), components.end(), [](ComponentPtr & cmp){ + return cmp->getID() == "net.minecraft"; + }); + if(minecraft != components.end()) { + component->m_version = (*minecraft)->getVersion(); + } + } } // HACK HACK HACK HACK FIXME: this is a placeholder for deciding what version to use. For now, it is hardcoded. // ############################################################################################################ |