]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix LatheMenu DefaultProductionAmount getting ignored (#35951)
authorTobias Berger <toby@tobot.dev>
Thu, 20 Mar 2025 16:38:59 +0000 (17:38 +0100)
committerGitHub <noreply@github.com>
Thu, 20 Mar 2025 16:38:59 +0000 (17:38 +0100)
Content.Client/Lathe/UI/LatheMenu.xaml.cs

index e796259ead719c32556986ea1fce3320d257bdc9..1e71d1ae8995d6b156d7dd0f479f82f074259402 100644 (file)
@@ -68,21 +68,13 @@ public sealed partial class LatheMenu : DefaultWindow
             {
                 ServerListButton.Visible = false;
             }
+
+            AmountLineEdit.SetText(latheComponent.DefaultProductionAmount.ToString());
         }
 
         MaterialsList.SetOwner(Entity);
     }
 
-    protected override void Opened()
-    {
-        base.Opened();
-
-        if (_entityManager.TryGetComponent<LatheComponent>(Entity, out var latheComp))
-        {
-            AmountLineEdit.SetText(latheComp.DefaultProductionAmount.ToString());
-        }
-    }
-
     /// <summary>
     /// Populates the list of all the recipes
     /// </summary>