Fix deconstruction when on a step in the middle of an edge (#4519)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user