Revert "Purge uses of TransformComponent.Anchored.set. Also adds parentheses." (#35332)

This commit is contained in:
metalgearsloth
2025-02-21 00:12:12 +11:00
committed by GitHub
parent a4001fba1b
commit fa35c9623d
22 changed files with 34 additions and 35 deletions

View File

@@ -8,7 +8,7 @@ namespace Content.Shared.Construction
{
public abstract class SharedConstructionSystem : EntitySystem
{
[Dependency] protected readonly IMapManager MapManager = default!;
[Dependency] private readonly IMapManager _mapManager = default!;
[Dependency] protected readonly IPrototypeManager PrototypeManager = default!;
[Dependency] protected readonly SharedTransformSystem TransformSystem = default!;
@@ -20,7 +20,7 @@ namespace Content.Shared.Construction
if (!canBuildInImpassable)
return null;
if (!MapManager.TryFindGridAt(coords, out _, out var grid))
if (!_mapManager.TryFindGridAt(coords, out _, out var grid))
return null;
var ignored = grid.GetAnchoredEntities(coords).ToHashSet();