From: Plykiya <58439124+Plykiya@users.noreply.github.com> Date: Sun, 30 Jun 2024 11:45:43 +0000 (-0700) Subject: Fixes lathe usage of EntityPrototypeView (#29608) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=1eb3a3e6d162942beabb012b75e23fbd869029cd;p=space-station-14.git Fixes lathe usage of EntityPrototypeView (#29608) Co-authored-by: plykiya --- diff --git a/Content.Client/Lathe/UI/LatheMenu.xaml.cs b/Content.Client/Lathe/UI/LatheMenu.xaml.cs index d4bbe89c51..265130d15d 100644 --- a/Content.Client/Lathe/UI/LatheMenu.xaml.cs +++ b/Content.Client/Lathe/UI/LatheMenu.xaml.cs @@ -217,12 +217,12 @@ public sealed partial class LatheMenu : DefaultWindow queuedRecipeBox.Orientation = BoxContainer.LayoutOrientation.Horizontal; var queuedRecipeProto = new EntityPrototypeView(); + queuedRecipeBox.AddChild(queuedRecipeProto); if (_prototypeManager.TryIndex(recipe.Result, out EntityPrototype? entityProto) && entityProto != null) queuedRecipeProto.SetPrototype(entityProto); var queuedRecipeLabel = new Label(); queuedRecipeLabel.Text = $"{idx}. {recipe.Name}"; - queuedRecipeBox.AddChild(queuedRecipeProto); queuedRecipeBox.AddChild(queuedRecipeLabel); QueueList.AddChild(queuedRecipeBox); idx++;