Skip to content

Commit

Permalink
fix (#1052)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanopus952 authored Jan 8, 2025
1 parent 0586eb1 commit 805febf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Content.Server/Access/Systems/AccessSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ public void Update(Entity<AccessReaderComponent> entity)
{
if (alerts.CurrentLevel.Contains(level.Key))
{
entity.Comp.AlertAccesses.TryGetValue(level.Value, out var value);
entity.Comp.Group = value;
break;
if (entity.Comp.AlertAccesses.TryGetValue(level.Value, out var value))
{
entity.Comp.Group = value;
break;
}
}
}
}
Expand Down

0 comments on commit 805febf

Please sign in to comment.