Fix fatal error when closing vending machine wire UI (#23815)

That's a whoops on my part
This commit is contained in:
Tayrtahn
2024-01-09 17:05:40 -05:00
committed by GitHub
parent 88045afcf0
commit be118013a9

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;