Fix deconstruction when on a step in the middle of an edge (#4519)

This commit is contained in:
ShadowCommander
2021-08-25 04:45:33 -07:00
committed by GitHub
parent 718906bf63
commit 20a3991227

View File

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