]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix cutting/pulsing high-sec door wires (#15989)
authorthemias <89101928+themias@users.noreply.github.com>
Tue, 2 May 2023 00:40:30 +0000 (20:40 -0400)
committerGitHub <noreply@github.com>
Tue, 2 May 2023 00:40:30 +0000 (10:40 +1000)
Content.Server/Wires/WiresSystem.cs

index 4fcf1f03a223b9aaf05fced5719b7379653e0c8e..e878a185bd47db3c9819bdc94fef46cce2a65da7 100644 (file)
@@ -165,10 +165,10 @@ public sealed class WiresSystem : SharedWiresSystem
                     else
                         types.Add(actionType, 1);
 
-                    d.Id = i;
                     if (!d.Action.AddWire(d, types[actionType]))
                         d.Action = null;
                 }
+                d.Id = i;
 
                 data.Add(id, new WireLayout.WireData(d.Letter, d.Color, i));
                 wires.WiresList[i] = wireSet[id];