diff --git a/Content.Client/Lathe/UI/LatheMenu.xaml.cs b/Content.Client/Lathe/UI/LatheMenu.xaml.cs index e796259ead..1e71d1ae89 100644 --- a/Content.Client/Lathe/UI/LatheMenu.xaml.cs +++ b/Content.Client/Lathe/UI/LatheMenu.xaml.cs @@ -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(Entity, out var latheComp)) - { - AmountLineEdit.SetText(latheComp.DefaultProductionAmount.ToString()); - } - } - /// /// Populates the list of all the recipes ///