Logger.logDebug("Authentication done, returning LoginResponse");
return new LoginResponse(Integer.toString(authentication.getAgent().getVersion()), "token", displayName, authentication.getAuthenticatedToken(), authentication
.getSelectedProfile().getId().toString(), authentication);
}
}
Logger.logDebug("this should never happen: isLoggedIn: " + authentication.isLoggedIn() + " canPlayOnline(): " + authentication.canPlayOnline());
} else if (authentication.getSelectedProfile() == null && (authentication.getAvailableProfiles() != null && authentication.getAvailableProfiles().length != 0)) {
// user has more than one profile in his mojang acoount
Logger.logInfo("You seem to have multiple profiles in your account. Please contact FTB Launcher team if profiles are not working!");
Logger.logDebug("User has more than one profile: " + toString(authentication));
for (GameProfile profile : authentication.getAvailableProfiles()) {