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:
parent
e1062303df
commit
69a001282c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user