]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Removes references to GetAnchoredEntitiesEnumerator(Vector2i) (#37796)
authorCojoke <83733158+Cojoke-dot@users.noreply.github.com>
Sat, 24 May 2025 23:00:47 +0000 (18:00 -0500)
committerGitHub <noreply@github.com>
Sat, 24 May 2025 23:00:47 +0000 (01:00 +0200)
* Removes references to GetAnchoredEntitiesEnumerator(Vector2i)

* requested changes(I think)

Content.Shared/Movement/Systems/SharedMoverController.cs
Content.Shared/Random/Rules/NearbyTilesPercent.cs

index abcf30d3204cdf64a44e7f4e8ed5b76d70897340..783902ace4a86fb3a7c4bbd196649cb1fc06db95 100644 (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))
         {
index beadfea05becc26c0dea79beb4aa2f6b91130106..4f8c1e040de9b8817f2031cd68c850be157d7dfd 100644 (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))