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