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