Replace obsolete code in GasPortableSystem (#31407)
This commit is contained in:
@@ -15,6 +15,7 @@ namespace Content.Server.Atmos.Piping.Unary.EntitySystems
|
|||||||
[UsedImplicitly]
|
[UsedImplicitly]
|
||||||
public sealed class GasPortableSystem : EntitySystem
|
public sealed class GasPortableSystem : EntitySystem
|
||||||
{
|
{
|
||||||
|
[Dependency] private readonly SharedMapSystem _mapSystem = default!;
|
||||||
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
|
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
|
||||||
[Dependency] private readonly NodeContainerSystem _nodeContainer = default!;
|
[Dependency] private readonly NodeContainerSystem _nodeContainer = default!;
|
||||||
|
|
||||||
@@ -57,7 +58,7 @@ namespace Content.Server.Atmos.Piping.Unary.EntitySystems
|
|||||||
if (!TryComp<MapGridComponent>(gridId, out var grid))
|
if (!TryComp<MapGridComponent>(gridId, out var grid))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
foreach (var entityUid in grid.GetLocal(coordinates))
|
foreach (var entityUid in _mapSystem.GetLocal(gridId.Value, grid, coordinates))
|
||||||
{
|
{
|
||||||
if (EntityManager.TryGetComponent(entityUid, out port))
|
if (EntityManager.TryGetComponent(entityUid, out port))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user