1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2025-01-07 19:29:03 +01:00

Support LiteLoader again by improving processor selection logic

This commit is contained in:
Henry Le Grys 2020-12-02 04:27:10 +00:00
parent e1062303df
commit 69a001282c

View File

@ -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 {