Removes references to GetAnchoredEntitiesEnumerator(Vector2i) (#37796)

* Removes references to GetAnchoredEntitiesEnumerator(Vector2i)

* requested changes(I think)
This commit is contained in:
Cojoke
2025-05-24 18:00:47 -05:00
committed by GitHub
parent 05d3d9350d
commit a66de72a26
2 changed files with 2 additions and 2 deletions

View File

@@ -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))
{

View File

@@ -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))