Completely fix NPC pathfinding

Through rigorous investigation and hard work.
This commit is contained in:
metalgearsloth
2021-08-12 23:56:34 +10:00
parent 46d1e4f06f
commit fe4bf059b9

View File

@@ -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);
}