From 69a001282c902945a519106e0e5fa1cb20ca3cbf Mon Sep 17 00:00:00 2001 From: Henry Le Grys Date: Wed, 2 Dec 2020 04:27:10 +0000 Subject: [PATCH] Support LiteLoader again by improving processor selection logic --- .../com/skcraft/launcher/builder/PackageBuilder.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/launcher-builder/src/main/java/com/skcraft/launcher/builder/PackageBuilder.java b/launcher-builder/src/main/java/com/skcraft/launcher/builder/PackageBuilder.java index b079be5..01f54ce 100644 --- a/launcher-builder/src/main/java/com/skcraft/launcher/builder/PackageBuilder.java +++ b/launcher-builder/src/main/java/com/skcraft/launcher/builder/PackageBuilder.java @@ -165,14 +165,11 @@ public class PackageBuilder { BasicInstallProfile basicProfile = mapper.readValue(BuilderUtils.readStringFromStream(reader), BasicInstallProfile.class); - String profileName = basicProfile.resolveProfileName(); - if (profileName.equalsIgnoreCase("forge")) { - if (basicProfile.isLegacy()) { - processor = new OldForgeLoaderProcessor(); - } else { - processor = new ModernForgeLoaderProcessor(); - } + if (basicProfile.isLegacy()) { + processor = new OldForgeLoaderProcessor(); + } else if (basicProfile.getProfile().equalsIgnoreCase("forge")) { + processor = new ModernForgeLoaderProcessor(); } } } finally {