Browse Source

bugfix: wrong char!

combat-2
MagicBot 8 months ago
parent
commit
3395efee49
  1. 3
      src/engine/net/client/handlers/GameServerIPRequestMsgHandler.java

3
src/engine/net/client/handlers/GameServerIPRequestMsgHandler.java

@ -32,7 +32,6 @@ public class GameServerIPRequestMsgHandler extends AbstractClientMsgHandler { @@ -32,7 +32,6 @@ public class GameServerIPRequestMsgHandler extends AbstractClientMsgHandler {
@Override
protected boolean _handleNetMsg(ClientNetMsg baseMsg, ClientConnection origin) throws MsgSendException {
PlayerCharacter playerCharacter = origin.getPlayerCharacter();
Session session = SessionManager.getSession(origin);
// Member variable declaration
@ -43,6 +42,8 @@ public class GameServerIPRequestMsgHandler extends AbstractClientMsgHandler { @@ -43,6 +42,8 @@ public class GameServerIPRequestMsgHandler extends AbstractClientMsgHandler {
msg = (GameServerIPRequestMsg) baseMsg;
PlayerCharacter playerCharacter = PlayerCharacter.getPlayerCharacter(msg.getCharacterUUID());
if (playerCharacter == null) {
Logger.info("Unable to find character ID " + msg.getCharacterUUID());
LoginServer.KickToLogin(MBServerStatics.LOGINERROR_UNABLE_TO_LOGIN, "PlayerCharacter lookup failed in .RequestGameServer().", origin);

Loading…
Cancel
Save