Fix construction pathfinding crash on machines when going the wrong way.
This commit is contained in:
@@ -13,10 +13,12 @@ namespace Content.Server.Construction
|
|||||||
if (!Resolve(uid, ref construction))
|
if (!Resolve(uid, ref construction))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Null means clear pathfinding target.
|
// Clear current target, just in case.
|
||||||
|
ClearPathfinding(uid, construction);
|
||||||
|
|
||||||
|
// Null means clear pathfinding target only.
|
||||||
if (targetNodeId == null)
|
if (targetNodeId == null)
|
||||||
{
|
{
|
||||||
ClearPathfinding(uid, construction);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user