Check for AFK only inGame status sessions (#12844)
This commit is contained in:
@@ -75,6 +75,8 @@ public sealed class AFKSystem : EntitySystem
|
|||||||
|
|
||||||
foreach (var session in Filter.GetAllPlayers())
|
foreach (var session in Filter.GetAllPlayers())
|
||||||
{
|
{
|
||||||
|
if (session.Status != SessionStatus.InGame) continue;
|
||||||
|
|
||||||
var pSession = (IPlayerSession) session;
|
var pSession = (IPlayerSession) session;
|
||||||
var isAfk = _afkManager.IsAfk(pSession);
|
var isAfk = _afkManager.IsAfk(pSession);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user