mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 21:48:58 +03:00
Replace obsolete functions in NPC systems (#31448)
(cherry picked from commit e85c25a7468b4daea7a5f1deb85900a9151651cf) Signed-off-by: Spatison <137375981+Spatison@users.noreply.github.com>
This commit is contained in:
@@ -207,7 +207,7 @@ public sealed partial class NPCSteeringSystem
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (var ent in _map.GetLocalAnchoredEntities(poly.GraphUid, grid, poly.Box))
|
||||
foreach (var ent in _mapSystem.GetLocalAnchoredEntities(poly.GraphUid, grid, poly.Box))
|
||||
{
|
||||
if (!_physicsQuery.TryGetComponent(ent, out var body) ||
|
||||
!body.Hard ||
|
||||
|
||||
Reference in New Issue
Block a user