1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2025-01-23 21:51:26 +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,16 +165,13 @@ 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 {
} else if (basicProfile.getProfile().equalsIgnoreCase("forge")) {
processor = new ModernForgeLoaderProcessor();
}
}
}
} finally {
closer.close();
jarFile.close();