From be118013a949389ca98b3ab8ba3307eb867706af Mon Sep 17 00:00:00 2001 From: Tayrtahn Date: Tue, 9 Jan 2024 17:05:40 -0500 Subject: [PATCH] Fix fatal error when closing vending machine wire UI (#23815) That's a whoops on my part --- Content.Server/VendingMachines/VendingMachineSystem.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Content.Server/VendingMachines/VendingMachineSystem.cs b/Content.Server/VendingMachines/VendingMachineSystem.cs index 9125bd8756..6d7ebef464 100644 --- a/Content.Server/VendingMachines/VendingMachineSystem.cs +++ b/Content.Server/VendingMachines/VendingMachineSystem.cs @@ -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; -- 2.51.2