Refactored disconnect handling, updated engine

This commit is contained in:
Light2
2013-12-15 23:49:12 +01:00
parent 8de830bb86
commit dce213cab1
19 changed files with 154 additions and 127 deletions
+2 -2
View File
@@ -135,7 +135,7 @@ public class LoginService implements INetworkDispatch{
client.setSession(session);
client.setGM(checkForGmPermission(id));
core.addClient((Integer)session.getAttribute("connectionId"), client);
core.addClient(session, client);
/*if(!checkIfAccountExistInGameDB(id)) {
createAccountForGameDB(id, user, email, encryptPass);
@@ -179,7 +179,7 @@ public class LoginService implements INetworkDispatch{
DeleteCharacterMessage packet = new DeleteCharacterMessage();
packet.deserialize(data);
Client client = core.getClient((Integer) session.getAttribute("connectionId"));
Client client = core.getClient(session);
PreparedStatement preparedStatement;