From a66de72a260bf2eda2d0eae9c6d093f475796860 Mon Sep 17 00:00:00 2001 From: Cojoke <83733158+Cojoke-dot@users.noreply.github.com> Date: Sat, 24 May 2025 18:00:47 -0500 Subject: [PATCH] Removes references to GetAnchoredEntitiesEnumerator(Vector2i) (#37796) * Removes references to GetAnchoredEntitiesEnumerator(Vector2i) * requested changes(I think) --- Content.Shared/Movement/Systems/SharedMoverController.cs | 2 +- Content.Shared/Random/Rules/NearbyTilesPercent.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Shared/Movement/Systems/SharedMoverController.cs b/Content.Shared/Movement/Systems/SharedMoverController.cs index abcf30d320..783902ace4 100644 --- a/Content.Shared/Movement/Systems/SharedMoverController.cs +++ b/Content.Shared/Movement/Systems/SharedMoverController.cs @@ -567,7 +567,7 @@ public abstract partial class SharedMoverController : VirtualController // If the coordinates have a FootstepModifier component // i.e. component that emit sound on footsteps emit that sound - var anchored = grid.GetAnchoredEntitiesEnumerator(position); + var anchored = _mapSystem.GetAnchoredEntitiesEnumerator(xform.GridUid.Value, grid, position); while (anchored.MoveNext(out var maybeFootstep)) { diff --git a/Content.Shared/Random/Rules/NearbyTilesPercent.cs b/Content.Shared/Random/Rules/NearbyTilesPercent.cs index beadfea05b..4f8c1e040d 100644 --- a/Content.Shared/Random/Rules/NearbyTilesPercent.cs +++ b/Content.Shared/Random/Rules/NearbyTilesPercent.cs @@ -45,7 +45,7 @@ public sealed partial class NearbyTilesPercentRule : RulesRule // Only consider collidable anchored (for reasons some subfloor stuff has physics but non-collidable) if (IgnoreAnchored) { - var gridEnum = grid.GetAnchoredEntitiesEnumerator(tile.GridIndices); + var gridEnum = mapSys.GetAnchoredEntitiesEnumerator(xform.GridUid.Value, grid, tile.GridIndices); var found = false; while (gridEnum.MoveNext(out var ancUid)) -- 2.51.2