Skip to content

Commit

Permalink
fix: Fixes disconnects due to bad seeding (#1663)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamronbatman authored Jan 24, 2024
1 parent 4cd668e commit 497ea87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Projects/UOContent/Network/Packets/IncomingAccountPackets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,6 @@ private static int GenerateAuthID(this NetState state)

public static void GameLogin(NetState state, SpanReader reader)
{
// TODO: Connection throttling

if (state.SentFirstPacket)
{
state.Disconnect("Duplicate game login packet received.");
Expand All @@ -375,6 +373,7 @@ public static void GameLogin(NetState state, SpanReader reader)

_authIDWindow.Remove(authId);
state.Version = ap.Version;
state.Seeded = true;

var username = reader.ReadAscii(30);
var password = reader.ReadAscii(30);
Expand Down

0 comments on commit 497ea87

Please sign in to comment.