From 69107fac903a0889f6685eff248cc94e2e0204ba Mon Sep 17 00:00:00 2001 From: iertis Date: Tue, 7 Jan 2025 13:18:49 +0300 Subject: [PATCH] fix --- Content.Server/Access/Systems/AccessSystem.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Content.Server/Access/Systems/AccessSystem.cs b/Content.Server/Access/Systems/AccessSystem.cs index 1533f877431..f682c8e8cef 100644 --- a/Content.Server/Access/Systems/AccessSystem.cs +++ b/Content.Server/Access/Systems/AccessSystem.cs @@ -75,9 +75,11 @@ public void Update(Entity 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; + } } } }