Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #323 from NEirotoXiN00/FixVendingMachine
Browse files Browse the repository at this point in the history
Fix Vending Machines
  • Loading branch information
Vonsant authored Jun 18, 2024
2 parents 4c17cb4 + b717543 commit 04315aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Content.Server/VendingMachines/VendingMachineSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<WeldableComponent>(uid);
}
Expand Down

0 comments on commit 04315aa

Please sign in to comment.