From fb1d180c7d0133533218b273d5aff87c848c0b81 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sun, 16 Feb 2025 13:10:39 +1100 Subject: [PATCH] Docking allocs reduc (#34965) Stuff I had unstaged. --- Content.Server/Shuttles/Systems/DockingSystem.Shuttle.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Server/Shuttles/Systems/DockingSystem.Shuttle.cs b/Content.Server/Shuttles/Systems/DockingSystem.Shuttle.cs index aabfaa31dd..8435075a69 100644 --- a/Content.Server/Shuttles/Systems/DockingSystem.Shuttle.cs +++ b/Content.Server/Shuttles/Systems/DockingSystem.Shuttle.cs @@ -323,7 +323,9 @@ public sealed partial class DockingSystem // If it's a map check no hard collidable anchored entities overlap if (isMap) { - foreach (var tile in _mapSystem.GetLocalTilesIntersecting(gridEntity.Owner, gridEntity.Comp, aabb)) + var localTiles = _mapSystem.GetLocalTilesEnumerator(gridEntity.Owner, gridEntity.Comp, aabb); + + while (localTiles.MoveNext(out var tile)) { var anchoredEnumerator = _mapSystem.GetAnchoredEntitiesEnumerator(gridEntity.Owner, gridEntity.Comp, tile.GridIndices); -- 2.51.2