Log out in PG on exit game
Can nog log in, enter game, exit game and re-login successfully.
This commit is contained in:
@@ -2,7 +2,6 @@ package service;
|
||||
|
||||
import client.BuddyList;
|
||||
import client.Client;
|
||||
import client.LoginState;
|
||||
import client.inventory.InventoryType;
|
||||
import config.YamlConfig;
|
||||
import constants.id.MapId;
|
||||
@@ -179,11 +178,11 @@ public class TransitionService {
|
||||
|
||||
|
||||
if (!c.isInTransition() && c.isLoggedIn()) {
|
||||
c.updateLoginState(LoginState.LOGGED_OUT);
|
||||
accountService.setLoggedOut(c);
|
||||
c.clear();
|
||||
} else {
|
||||
if (!Server.getInstance().hasCharacteridInTransition(c)) {
|
||||
c.updateLoginState(LoginState.LOGGED_OUT);
|
||||
accountService.setLoggedOut(c);
|
||||
}
|
||||
|
||||
c.clearEngines();
|
||||
|
||||
Reference in New Issue
Block a user