From 20a39912276758f6d0f73388b4dd35a5cd519139 Mon Sep 17 00:00:00 2001 From: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com> Date: Wed, 25 Aug 2021 04:45:33 -0700 Subject: [PATCH] Fix deconstruction when on a step in the middle of an edge (#4519) --- Content.Server/Construction/Components/ConstructionComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Construction/Components/ConstructionComponent.cs b/Content.Server/Construction/Components/ConstructionComponent.cs index 08da52c2a4..ffed8940c0 100644 --- a/Content.Server/Construction/Components/ConstructionComponent.cs +++ b/Content.Server/Construction/Components/ConstructionComponent.cs @@ -137,7 +137,7 @@ namespace Content.Server.Construction.Components TargetPathfinding.Dequeue(); // If we went the wrong way, we stop pathfinding. - if (Edge != null && TargetNextEdge != Edge) + if (Edge != null && TargetNextEdge != Edge && EdgeStep >= Edge.Steps.Count) { ClearTarget(); return;