Fix construction graph ghost examine message (#22424)

This commit is contained in:
themias
2023-12-12 19:01:51 -05:00
committed by GitHub
parent e7de7fa075
commit 9257703ef9
2 changed files with 6 additions and 2 deletions

View 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;