From 805febf9d8a19ed17c13b97d668d8230ed9851bd Mon Sep 17 00:00:00 2001 From: iertis Date: Wed, 8 Jan 2025 05:55:24 +0500 Subject: [PATCH] fix (#1052) --- 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; + } } } }