Completely fix NPC pathfinding
Through rigorous investigation and hard work.
This commit is contained in:
@@ -276,7 +276,7 @@ namespace Content.Server.AI.Pathfinding
|
||||
|
||||
DebugTools.Assert((PathfindingSystem.TrackedCollisionLayers & physicsComponent.CollisionLayer) != 0);
|
||||
|
||||
if (physicsComponent.BodyType == BodyType.Static)
|
||||
if (physicsComponent.BodyType != BodyType.Static)
|
||||
{
|
||||
_physicsLayers.Add(entity, physicsComponent.CollisionLayer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user