fix construction getting stuck on edges

This commit is contained in:
Janet Blackquill
2025-10-11 00:56:31 -04:00
parent 060b4d18cc
commit 52b6146afb

View File

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