mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[FIX] NPE in new profiles
This commit is contained in:
parent
b5457ee866
commit
6c0ead015b
1 changed files with 2 additions and 0 deletions
|
@ -51,6 +51,7 @@ public ClientProfileBuilder() {
|
||||||
this.properties = new HashMap<>();
|
this.properties = new HashMap<>();
|
||||||
this.servers = new ArrayList<>();
|
this.servers = new ArrayList<>();
|
||||||
this.flags = new ArrayList<>();
|
this.flags = new ArrayList<>();
|
||||||
|
this.settings = new ClientProfile.ProfileDefaultSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
public ClientProfileBuilder(ClientProfile profile) {
|
public ClientProfileBuilder(ClientProfile profile) {
|
||||||
|
@ -83,6 +84,7 @@ public ClientProfileBuilder(ClientProfile profile) {
|
||||||
this.mainClass = profile.getMainClass();
|
this.mainClass = profile.getMainClass();
|
||||||
this.mainModule = profile.getMainModule();
|
this.mainModule = profile.getMainModule();
|
||||||
this.moduleConf = profile.getModuleConf();
|
this.moduleConf = profile.getModuleConf();
|
||||||
|
this.settings = profile.getSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
public ClientProfileBuilder setTitle(String title) {
|
public ClientProfileBuilder setTitle(String title) {
|
||||||
|
|
Loading…
Reference in a new issue