From 67d7be9978ac703bc8f508b18cadaaa13ed474c6 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sat, 1 Jul 2023 23:22:45 +1000 Subject: [PATCH] Minor radiation thing (#17768) --- Content.Server/Radiation/Systems/RadiationSystem.Debug.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Content.Server/Radiation/Systems/RadiationSystem.Debug.cs b/Content.Server/Radiation/Systems/RadiationSystem.Debug.cs index 6aa8d0d178..bd422663f2 100644 --- a/Content.Server/Radiation/Systems/RadiationSystem.Debug.cs +++ b/Content.Server/Radiation/Systems/RadiationSystem.Debug.cs @@ -6,6 +6,7 @@ using Content.Shared.Radiation.Events; using Content.Shared.Radiation.Systems; using Robust.Shared.Console; using Robust.Shared.Enums; +using Robust.Shared.Map.Components; using Robust.Shared.Players; namespace Content.Server.Radiation.Systems; @@ -58,9 +59,10 @@ public partial class RadiationSystem var query = GetEntityQuery(); var dict = new Dictionary>(); - foreach (var grid in _mapManager.GetAllGrids()) + var gridQuery = AllEntityQuery(); + + while (gridQuery.MoveNext(out var gridUid, out var grid)) { - var gridUid = grid.Owner; if (!query.TryGetComponent(gridUid, out var resistance)) continue;