Replace obsolete functions in NPC systems (#31448)

This commit is contained in:
Mervill
2024-08-26 15:29:44 -07:00
committed by GitHub
parent f65f57ef92
commit e85c25a746
4 changed files with 12 additions and 10 deletions

View File

@@ -207,7 +207,7 @@ public sealed partial class NPCSteeringSystem
return;
}
foreach (var ent in grid.GetLocalAnchoredEntities(poly.Box))
foreach (var ent in _mapSystem.GetLocalAnchoredEntities(poly.GraphUid, grid, poly.Box))
{
if (!_physicsQuery.TryGetComponent(ent, out var body) ||
!body.Hard ||