Log out in PG on exit game

Can nog log in, enter game, exit game and re-login successfully.
This commit is contained in:
P0nk
2024-09-29 09:26:34 +02:00
parent 4e1aa1eb1a
commit 902f1a154e

View File

@@ -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();