]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fixes lathe usage of EntityPrototypeView (#29608)
authorPlykiya <58439124+Plykiya@users.noreply.github.com>
Sun, 30 Jun 2024 11:45:43 +0000 (04:45 -0700)
committerGitHub <noreply@github.com>
Sun, 30 Jun 2024 11:45:43 +0000 (21:45 +1000)
Co-authored-by: plykiya <plykiya@protonmail.com>
Content.Client/Lathe/UI/LatheMenu.xaml.cs

index d4bbe89c51fa19d28d5be868ce42325f1288006f..265130d15d31e56ca6b1547c41792d40f6d04fb4 100644 (file)
@@ -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++;