Skip to content

Commit

Permalink
fix missing disabled sessions check
Browse files Browse the repository at this point in the history
  • Loading branch information
ThereDrD0 committed Jan 2, 2025
1 parent acade09 commit 40fde6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Content.Server/_Sunrise/DamageOverlay/DamageOverlaySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -121,6 +120,9 @@ private EntityCoordinates GenerateRandomCoordinates(EntityCoordinates center, fl
/// </summary>
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)))
Expand Down

0 comments on commit 40fde6d

Please sign in to comment.