Cleanup some lookup stuff (#18738)

This commit is contained in:
metalgearsloth
2023-08-06 15:11:43 +10:00
committed by GitHub
parent 413370d545
commit 5d3503222c
2 changed files with 21 additions and 14 deletions

View File

@@ -454,7 +454,7 @@ public sealed partial class PathfindingSystem
// var isBorder = x < 0 || y < 0 || x == ChunkSize - 1 || y == ChunkSize - 1;
tileEntities.Clear();
var available = _lookup.GetEntitiesIntersecting(tile);
var available = _lookup.GetEntitiesIntersecting(tile, flags: LookupFlags.Dynamic | LookupFlags.Static);
foreach (var ent in available)
{