Purge uses of TransformComponent.Anchored.set. Also adds parentheses. (#34938)

This commit is contained in:
TemporalOroboros
2025-02-20 04:06:39 -08:00
committed by GitHub
parent c8dce26dbb
commit a4001fba1b
22 changed files with 35 additions and 34 deletions

View File

@@ -8,7 +8,7 @@ namespace Content.Shared.Construction
{
public abstract class SharedConstructionSystem : EntitySystem
{
[Dependency] private readonly IMapManager _mapManager = default!;
[Dependency] protected 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();