From 40fde6d7bdb016a1b18573fd6a25bab89ba24da3 Mon Sep 17 00:00:00 2001 From: drdth Date: Thu, 2 Jan 2025 08:27:06 +0300 Subject: [PATCH] fix missing disabled sessions check --- Content.Server/_Sunrise/DamageOverlay/DamageOverlaySystem.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Server/_Sunrise/DamageOverlay/DamageOverlaySystem.cs b/Content.Server/_Sunrise/DamageOverlay/DamageOverlaySystem.cs index d37445e19d9..412bbcef42c 100644 --- a/Content.Server/_Sunrise/DamageOverlay/DamageOverlaySystem.cs +++ b/Content.Server/_Sunrise/DamageOverlay/DamageOverlaySystem.cs @@ -5,7 +5,6 @@ using Content.Shared._Sunrise.DamageOverlay; using Content.Shared.Damage; using Content.Shared.FixedPoint; -using FastAccessors; using Robust.Shared.Map; using Robust.Shared.Player; using Robust.Shared.Prototypes; @@ -121,6 +120,9 @@ private EntityCoordinates GenerateRandomCoordinates(EntityCoordinates center, fl /// private bool IsDisabledByClient(ICommonSession session, DamageOverlayComponent component, DamageSpecifier damageDelta) { + if (_disabledSessions.Contains(session)) + return true; + if (_playerSettings.TryGetValue(session, out var playerPreset)) { if (damageDelta.DamageDict.Keys.Any(item => playerPreset.Types.Contains(item)))