fix construction getting stuck on edges
This commit is contained in:
@@ -68,9 +68,15 @@ namespace Content.Server.Construction
|
||||
{
|
||||
var result = HandleEdge(uid, ev, edge, validation, construction, out _); // Offbrand
|
||||
|
||||
// Reset edge index to none if this failed...
|
||||
if (!validation && result is HandleResult.False && construction.StepIndex == 0)
|
||||
construction.EdgeIndex = null;
|
||||
// Begin Offbrand
|
||||
if (result is HandleResult.False && construction.StepIndex == 0)
|
||||
{
|
||||
if (!validation)
|
||||
construction.EdgeIndex = null;
|
||||
|
||||
return HandleNode(uid, ev, node, validation, construction);
|
||||
}
|
||||
// End Offbrand
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user