From bb31c9ff1f133c01ff6b3a65d71af574b92f41a1 Mon Sep 17 00:00:00 2001 From: Morb <14136326+Morb0@users.noreply.github.com> Date: Thu, 12 Jan 2023 15:36:20 +0300 Subject: [PATCH] Check for AFK only inGame status sessions (#12844) --- Content.Server/Afk/AFKSystem.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Content.Server/Afk/AFKSystem.cs b/Content.Server/Afk/AFKSystem.cs index 0f2bc52112..ca7fff26ad 100644 --- a/Content.Server/Afk/AFKSystem.cs +++ b/Content.Server/Afk/AFKSystem.cs @@ -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);