fix: Add 1.16+ Forge library prefix in TechnicPackProcessor.cpp

Signed-off-by: byquanton <32410361+byquanton@users.noreply.github.com>
This commit is contained in:
byquanton 2023-01-05 17:08:41 +01:00
parent 4b12c85d91
commit 2faf8332ee
No known key found for this signature in database
GPG Key ID: FA251D5609123BA9

View File

@ -172,7 +172,7 @@ void Technic::TechnicPackProcessor::run(SettingsObjectPtr globalSettings, const
auto libraryObject = Json::ensureObject(library, {}, ""); auto libraryObject = Json::ensureObject(library, {}, "");
auto libraryName = Json::ensureString(libraryObject, "name", "", ""); 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); QString libraryVersion = libraryName.section(':', 2);
if (!libraryVersion.startsWith("1.7.10-")) if (!libraryVersion.startsWith("1.7.10-"))