diff --git a/Content.Server/VendingMachines/VendingMachineSystem.cs b/Content.Server/VendingMachines/VendingMachineSystem.cs index 7ecb02cbdf6..6f3acdb6ac0 100644 --- a/Content.Server/VendingMachines/VendingMachineSystem.cs +++ b/Content.Server/VendingMachines/VendingMachineSystem.cs @@ -175,6 +175,7 @@ private void OnPowerChanged(EntityUid uid, VendingMachineComponent component, re private void OnBreak(EntityUid uid, VendingMachineComponent vendComponent, BreakageEventArgs eventArgs) { vendComponent.Broken = true; + _userInterfaceSystem.CloseUi(uid, VendingMachineUiKey.Key); TryUpdateVisualState(uid, vendComponent); EnsureComp(uid); }