From: Tobias Berger Date: Thu, 20 Mar 2025 16:38:59 +0000 (+0100) Subject: Fix LatheMenu DefaultProductionAmount getting ignored (#35951) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=0d04f541d25b25a6ad80a9372a98f8620347741b;p=space-station-14.git Fix LatheMenu DefaultProductionAmount getting ignored (#35951) --- 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 ///