mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +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.servers = new ArrayList<>();
|
||||
this.flags = new ArrayList<>();
|
||||
this.settings = new ClientProfile.ProfileDefaultSettings();
|
||||
}
|
||||
|
||||
public ClientProfileBuilder(ClientProfile profile) {
|
||||
|
@ -83,6 +84,7 @@ 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) {
|
||||
|
|
Loading…
Reference in a new issue