diff options
author | byquanton <32410361+byquanton@users.noreply.github.com> | 2023-01-05 17:08:41 +0100 |
---|---|---|
committer | byquanton <32410361+byquanton@users.noreply.github.com> | 2023-01-06 02:44:10 +0100 |
commit | 2faf8332ee8523a5c097c744dc8e12e86d304230 (patch) | |
tree | b7b0b68d77336245d3fd35393900a50234d0e14c /launcher/modplatform/technic/TechnicPackProcessor.cpp | |
parent | 4b12c85d91be34504384117584fb4f25a754481e (diff) | |
download | PrismLauncher-2faf8332ee8523a5c097c744dc8e12e86d304230.tar.gz PrismLauncher-2faf8332ee8523a5c097c744dc8e12e86d304230.tar.bz2 PrismLauncher-2faf8332ee8523a5c097c744dc8e12e86d304230.zip |
fix: Add 1.16+ Forge library prefix in TechnicPackProcessor.cpp
Signed-off-by: byquanton <32410361+byquanton@users.noreply.github.com>
Diffstat (limited to 'launcher/modplatform/technic/TechnicPackProcessor.cpp')
-rw-r--r-- | launcher/modplatform/technic/TechnicPackProcessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/modplatform/technic/TechnicPackProcessor.cpp b/launcher/modplatform/technic/TechnicPackProcessor.cpp index 95feb4b2..df713a72 100644 --- a/launcher/modplatform/technic/TechnicPackProcessor.cpp +++ b/launcher/modplatform/technic/TechnicPackProcessor.cpp @@ -172,7 +172,7 @@ void Technic::TechnicPackProcessor::run(SettingsObjectPtr globalSettings, const auto libraryObject = Json::ensureObject(library, {}, ""); auto libraryName = Json::ensureString(libraryObject, "name", "", ""); - if (libraryName.startsWith("net.minecraftforge:forge:") && libraryName.contains('-')) + if ((libraryName.startsWith("net.minecraftforge:forge:") || libraryName.startsWith("net.minecraftforge:fmlloader:")) && libraryName.contains('-')) { QString libraryVersion = libraryName.section(':', 2); if (!libraryVersion.startsWith("1.7.10-")) |