diff --git a/Launcher/src/main/java/ru/gravit/launcher/server/ServerWrapper.java b/Launcher/src/main/java/ru/gravit/launcher/server/ServerWrapper.java index 4851f1e6..dd7ccd6a 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/server/ServerWrapper.java +++ b/Launcher/src/main/java/ru/gravit/launcher/server/ServerWrapper.java @@ -45,7 +45,7 @@ public static void main(String[] args) throws Throwable { ProfilesRequest.Result result = new ProfilesRequest(cfg).request(); for (SignedObjectHolder p : result.profiles) { 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; ClientLauncher.setProfile(p.object); LogHelper.debug("Found profile: %s", ClientLauncher.profile.getTitle());