]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix construction graph ghost examine message (#22424)
authorthemias <89101928+themias@users.noreply.github.com>
Wed, 13 Dec 2023 00:01:51 +0000 (19:01 -0500)
committerGitHub <noreply@github.com>
Wed, 13 Dec 2023 00:01:51 +0000 (17:01 -0700)
Content.Client/Construction/ConstructionSystem.cs
Resources/Prototypes/Recipes/Construction/Graphs/structures/secretdoor.yml

index d0a14860f113370f6a8c50ca8ffbcab0a1473b1f..4035c68cc7581db7e01ae6abdb74cc4bf80bc836 100644 (file)
@@ -2,6 +2,7 @@ using System.Diagnostics.CodeAnalysis;
 using Content.Client.Popups;
 using Content.Shared.Construction;
 using Content.Shared.Construction.Prototypes;
+using Content.Shared.Construction.Steps;
 using Content.Shared.Examine;
 using Content.Shared.Input;
 using Content.Shared.Interaction;
@@ -97,7 +98,11 @@ namespace Content.Client.Construction
                 return;
             }
 
-            edge.Steps[0].DoExamine(args);
+            foreach (ConstructionGraphStep step in edge.Steps)
+            {
+                args.Message.PushNewline();
+                step.DoExamine(args);
+            }
         }
 
         public event EventHandler<CraftingAvailabilityChangedArgs>? CraftingAvailabilityChanged;
index 336933a36b369ea56dcb108071279e01f398f5e7..2c5a0db2b8206088b8108110565b88292d78ac8f 100644 (file)
@@ -12,7 +12,6 @@
       - material: Steel
         amount: 4
         doAfter: 4
-
       - material: MetalRod
         amount: 4
         doAfter: 4