int loginOkId2 = readD();
L2LoginClient client = LoginController.getInstance().getAuthedClient(account);
if(client == null)
{
System.out.println("Client is null for account " + account);
sendPacket(new PlayerAuthResponse(account));
return;
}
SessionKey key = client.getSessionKey();
int lPlayOk1 = key.playOkID1;
int lPlayOk2 = key.playOkID2;
int lLoginOk1 = key.loginOkID1;
int lLoginOk2 = key.loginOkID2;
boolean isAuthedOnLs;
isAuthedOnLs = playOkId1 == lPlayOk1 && playOkId2 == lPlayOk2 && loginOkId1 == lLoginOk1 && loginOkId2 == lLoginOk2;
sendPacket(new PlayerAuthResponse(client, isAuthedOnLs));
}