[FIX] Profile generation

This commit is contained in:
Gravita 2024-04-26 02:01:50 +07:00
parent 6c0ead015b
commit c9a81da60c
2 changed files with 5 additions and 1 deletions

View file

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

View file

@ -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");
}