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)))