newKeys1[i] = (short) (keys1[i] & 0xFF);
newKeys2[i] = (short) (keys2[i] & 0xFF);
}
// Retrieve the connection with the GameServer
GameServerPortal gameServerPortal = selectedGameServer.getGameServerPortal();
// tell the Game Server to accept connections from this client
try {
gameServerPortal.acceptPlayerRequest(new LoginServerPlayerData(accountId, characterId, mapId, newKeys1, newKeys2));
} catch (RemoteException e) {
LOGGER.error("Failed to register this player with a game server");
throw new RuntimeException("Failed to register this player with a game server", e);
}
// This returned, the Game Server knows about the new client that should connect soon