From: Tayrtahn Date: Sun, 14 Jan 2024 01:43:05 +0000 (-0500) Subject: Fix vending machine thank you flag timing (#24049) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=055d62f560500765f5893445733423c12b0c3427;p=space-station-14.git Fix vending machine thank you flag timing (#24049) Fix thank you flag timing --- diff --git a/Content.Server/VendingMachines/VendingMachineSystem.cs b/Content.Server/VendingMachines/VendingMachineSystem.cs index 6d7ebef464..e4d4e931e3 100644 --- a/Content.Server/VendingMachines/VendingMachineSystem.cs +++ b/Content.Server/VendingMachines/VendingMachineSystem.cs @@ -298,6 +298,7 @@ namespace Content.Server.VendingMachines vendComponent.Ejecting = true; vendComponent.NextItemToEject = entry.ID; vendComponent.ThrowNextItem = throwItem; + vendComponent.ShouldSayThankYou = true; entry.Amount--; UpdateVendingMachineInterfaceState(uid, vendComponent); TryUpdateVisualState(uid, vendComponent); @@ -405,8 +406,6 @@ namespace Content.Server.VendingMachines _throwingSystem.TryThrow(ent, direction, vendComponent.NonLimitedEjectForce); } - vendComponent.ShouldSayThankYou = true; - vendComponent.NextItemToEject = null; vendComponent.ThrowNextItem = false; }