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:
Tayrtahn 2024-01-09 17:05:40 -05:00 committed by Debug
parent 0e9b07db94
commit 95f71103e8
No known key found for this signature in database
GPG Key ID: 271270A74EF9C350
1 changed files with 3 additions and 0 deletions

View File

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