Fix pathfinding entity deletions

Also some slight optimisations in the process.
This commit is contained in:
Metal Gear Sloth
2020-07-08 21:05:27 +10:00
parent 2d2385032a
commit ae1c578e8e
3 changed files with 67 additions and 122 deletions

View File

@@ -29,9 +29,8 @@ namespace Content.Server.GameObjects.EntitySystems.AI.Pathfinding
_indices = indices;
}
public void Initialize()
public void Initialize(IMapGrid grid)
{
var grid = IoCManager.Resolve<IMapManager>().GetGrid(GridId);
for (var x = 0; x < ChunkSize; x++)
{
for (var y = 0; y < ChunkSize; y++)