mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[FIX] Profile generation
This commit is contained in:
parent
6c0ead015b
commit
c9a81da60c
2 changed files with 5 additions and 1 deletions
|
@ -52,6 +52,10 @@ public ClientProfileBuilder() {
|
|||
this.servers = new ArrayList<>();
|
||||
this.flags = new ArrayList<>();
|
||||
this.settings = new ClientProfile.ProfileDefaultSettings();
|
||||
this.recommendJavaVersion = 21;
|
||||
this.minJavaVersion = 17;
|
||||
this.maxJavaVersion = 999;
|
||||
this.classLoaderConfig = ClientProfile.ClassLoaderConfig.LAUNCHER;
|
||||
}
|
||||
|
||||
public ClientProfileBuilder(ClientProfile profile) {
|
||||
|
@ -84,7 +88,6 @@ public ClientProfileBuilder(ClientProfile profile) {
|
|||
this.mainClass = profile.getMainClass();
|
||||
this.mainModule = profile.getMainModule();
|
||||
this.moduleConf = profile.getModuleConf();
|
||||
this.settings = profile.getSettings();
|
||||
}
|
||||
|
||||
public ClientProfileBuilder setTitle(String title) {
|
||||
|
|
|
@ -18,4 +18,5 @@ private ClientProfileVersions() {
|
|||
public static final ClientProfile.Version MINECRAFT_1_20 = ClientProfile.Version.of("1.20");
|
||||
public static final ClientProfile.Version MINECRAFT_1_20_2 = ClientProfile.Version.of("1.20.2");
|
||||
public static final ClientProfile.Version MINECRAFT_1_20_3 = ClientProfile.Version.of("1.20.3");
|
||||
public static final ClientProfile.Version MINECRAFT_1_20_5 = ClientProfile.Version.of("1.20.5");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue