Fix vending machine thank you flag timing (#24049)

Fix thank you flag timing
This commit is contained in:
Tayrtahn
2024-01-13 20:43:05 -05:00
committed by GitHub
parent 93973ec500
commit 055d62f560

View File

@@ -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;
}