From 055d62f560500765f5893445733423c12b0c3427 Mon Sep 17 00:00:00 2001 From: Tayrtahn Date: Sat, 13 Jan 2024 20:43:05 -0500 Subject: [PATCH] Fix vending machine thank you flag timing (#24049) Fix thank you flag timing --- Content.Server/VendingMachines/VendingMachineSystem.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.51.2