Cleanup remaining MapGridComponent.GetAnchoredEntities(MapCoordinates) uses (#37729)
Cleanup remaining MapGridComponent.GetAnchoredEntities uses
This commit is contained in:
@@ -61,6 +61,7 @@ namespace Content.Shared.Interaction
|
||||
[Dependency] private readonly PullingSystem _pullSystem = default!;
|
||||
[Dependency] private readonly RotateToFaceSystem _rotateToFaceSystem = default!;
|
||||
[Dependency] private readonly SharedContainerSystem _containerSystem = default!;
|
||||
[Dependency] private readonly SharedMapSystem _map = default!;
|
||||
[Dependency] private readonly SharedPhysicsSystem _broadphase = default!;
|
||||
[Dependency] private readonly SharedTransformSystem _transform = default!;
|
||||
[Dependency] private readonly SharedVerbSystem _verbSystem = default!;
|
||||
@@ -885,8 +886,8 @@ namespace Content.Shared.Interaction
|
||||
ignoreAnchored = angleDelta < wallMount.Arc / 2 || Math.Tau - angleDelta < wallMount.Arc / 2;
|
||||
}
|
||||
|
||||
if (ignoreAnchored && _mapManager.TryFindGridAt(targetCoords, out _, out var grid))
|
||||
ignored.UnionWith(grid.GetAnchoredEntities(targetCoords));
|
||||
if (ignoreAnchored && _mapManager.TryFindGridAt(targetCoords, out var gridUid, out var grid))
|
||||
ignored.UnionWith(_map.GetAnchoredEntities((gridUid, grid), targetCoords));
|
||||
}
|
||||
|
||||
Ignored combinedPredicate = e => e == target || (predicate?.Invoke(e) ?? false) || ignored.Contains(e);
|
||||
|
||||
Reference in New Issue
Block a user