]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix fatal error when closing vending machine wire UI (#23815)
authorTayrtahn <tayrtahn@gmail.com>
Tue, 9 Jan 2024 22:05:40 +0000 (17:05 -0500)
committerGitHub <noreply@github.com>
Tue, 9 Jan 2024 22:05:40 +0000 (17:05 -0500)
That's a whoops on my part

Content.Server/VendingMachines/VendingMachineSystem.cs

index 9125bd8756885f2dc5d952e6de34dee6f4d51f12..6d7ebef464d5a339d9c784494f209d80ddbc62e5 100644 (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;