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