Fixed wrong password crashing client.

This commit is contained in:
MobiusDev
2017-11-10 00:14:31 +00:00
parent a0fc4bebfd
commit 1f463c4ed1
2 changed files with 8 additions and 2 deletions

View File

@@ -133,7 +133,10 @@ public class RequestAuthLogin extends L2LoginClientPacket
if (info == null) if (info == null)
{ {
// user or pass wrong // user or pass wrong
client.close(LoginFailReason.REASON_USER_OR_PASS_WRONG); // client.close(LoginFailReason.REASON_SYSTEM_ERROR);
// above message crashes client
// REASON_ACCOUNT_INFO_INCORRECT_CONTACT_SUPPORT seems ok as well
client.close(LoginFailReason.REASON_ACCESS_FAILED);
return; return;
} }

View File

@@ -133,7 +133,10 @@ public class RequestAuthLogin extends L2LoginClientPacket
if (info == null) if (info == null)
{ {
// user or pass wrong // user or pass wrong
client.close(LoginFailReason.REASON_USER_OR_PASS_WRONG); // client.close(LoginFailReason.REASON_SYSTEM_ERROR);
// above message crashes client
// REASON_ACCOUNT_INFO_INCORRECT_CONTACT_SUPPORT seems ok as well
client.close(LoginFailReason.REASON_ACCESS_FAILED);
return; return;
} }