Check for AFK only inGame status sessions (#12844)

This commit is contained in:
Morb 2023-01-12 15:36:20 +03:00 committed by GitHub
parent cbc7b41009
commit bb31c9ff1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,8 @@ public sealed class AFKSystem : EntitySystem
foreach (var session in Filter.GetAllPlayers())
{
if (session.Status != SessionStatus.InGame) continue;
var pSession = (IPlayerSession) session;
var isAfk = _afkManager.IsAfk(pSession);