From fe4bf059b97e45b8ba5efb5d2f1ec667c97b5375 Mon Sep 17 00:00:00 2001 From: metalgearsloth Date: Thu, 12 Aug 2021 23:56:34 +1000 Subject: [PATCH] Completely fix NPC pathfinding Through rigorous investigation and hard work. --- Content.Server/AI/Pathfinding/PathfindingNode.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/AI/Pathfinding/PathfindingNode.cs b/Content.Server/AI/Pathfinding/PathfindingNode.cs index b5eaab7d45..fb9a3238f6 100644 --- a/Content.Server/AI/Pathfinding/PathfindingNode.cs +++ b/Content.Server/AI/Pathfinding/PathfindingNode.cs @@ -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); }