fix: Fixes disconnects due to bad seeding (#1663)

This commit is contained in:
Kamron Batman 2024-01-23 19:01:02 -08:00 committed by GitHub
parent 4cd668ef61
commit 497ea87943
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -348,8 +348,6 @@ public static class IncomingAccountPackets
public static void GameLogin(NetState state, SpanReader reader)
{
// TODO: Connection throttling
if (state.SentFirstPacket)
{
state.Disconnect("Duplicate game login packet received.");
@ -375,6 +373,7 @@ public static class IncomingAccountPackets
_authIDWindow.Remove(authId);
state.Version = ap.Version;
state.Seeded = true;
var username = reader.ReadAscii(30);
var password = reader.ReadAscii(30);