Хот фикс для ServerWrapper

This commit is contained in:
Gravit 2018-09-24 19:02:04 +07:00
parent e80551e108
commit 96167e81a3

View file

@ -45,7 +45,7 @@ public static void main(String[] args) throws Throwable {
ProfilesRequest.Result result = new ProfilesRequest(cfg).request(); ProfilesRequest.Result result = new ProfilesRequest(cfg).request();
for (SignedObjectHolder<ClientProfile> p : result.profiles) { for (SignedObjectHolder<ClientProfile> p : result.profiles) {
LogHelper.debug("Get profile: %s", p.object.getTitle()); LogHelper.debug("Get profile: %s", p.object.getTitle());
if (p.object.getTitle().equals(ClientLauncher.profile.getTitle())) { if (p.object.getTitle().equals(config.title)) {
wrapper.profile = p.object; wrapper.profile = p.object;
ClientLauncher.setProfile(p.object); ClientLauncher.setProfile(p.object);
LogHelper.debug("Found profile: %s", ClientLauncher.profile.getTitle()); LogHelper.debug("Found profile: %s", ClientLauncher.profile.getTitle());