Fix fatal error when closing vending machine wire UI (#23815)
That's a whoops on my part (cherry picked from commit be118013a949389ca98b3ab8ba3307eb867706af)
This commit is contained in:
parent
0e9b07db94
commit
95f71103e8
|
|
@ -114,6 +114,9 @@ namespace Content.Server.VendingMachines
|
|||
|
||||
private void OnBoundUIClosed(EntityUid uid, VendingMachineComponent component, BoundUIClosedEvent args)
|
||||
{
|
||||
if (args.UiKey is not VendingMachineUiKey)
|
||||
return;
|
||||
|
||||
if ((VendingMachineUiKey) args.UiKey != VendingMachineUiKey.Key)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue