Bug fixin

This commit is contained in:
dingo
2026-01-30 11:31:58 -05:00
parent f457be2783
commit c2d1bd78df
+3 -2
View File
@@ -159,15 +159,16 @@ public sealed partial class DungeonHandler : IClientMessageHandler
return;
}
// All dungeon operations require authentication
if (!_sessions.TryGet(connection.Id, out var accountId, out _) && opCode != DungeonOpCodes.ASSET_MANIFEST_REQUEST)
if (!_sessions.TryGet(connection.Id, out var accountId, out _) && opCode != DungeonOpCodes.ASSET_MANIFEST_REQUEST && opCode != OpCodes.PONG)
{
await SendErrorAsync(connection, $"auth_required for packet: {opCode}", ct);
return;
}
// Get or create player session
var session = await GetOrCreateSessionAsync(connection, accountId, ct);
if (session == null)
if (session == null && opCode != OpCodes.PONG)
{
await SendErrorAsync(connection, "no_character", ct);
return;