Fix vending machine thank you flag timing (#24049)
Fix thank you flag timing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user