Remove implicit GridId conversions (#8975)

This commit is contained in:
Leon Friedrich
2022-06-29 00:56:02 +12:00
committed by GitHub
parent 7a14c6f331
commit c13c0b8b0b
13 changed files with 33 additions and 35 deletions

View File

@@ -97,7 +97,7 @@ namespace Content.Server.AI.Pathfinding.Accessible
private void GridRemoved(GridRemovalEvent ev)
{
_regions.Remove(ev.GridId);
_regions.Remove(ev.EntityUid);
}
public override void Update(float frameTime)

View File

@@ -47,7 +47,7 @@ namespace Content.Server.AI.Pathfinding.Pathfinders
return null;
}
if (_entityManager.Deleted(_pathfindingArgs.Start.GridIndex))
if (_entityManager.Deleted(_pathfindingArgs.Start.GridUid))
return null;
var frontier = new PriorityQueue<ValueTuple<float, PathfindingNode>>(new PathfindingComparer());