]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix single-user BUIs erroneously closing (#28375)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Wed, 29 May 2024 10:25:16 +0000 (20:25 +1000)
committerGitHub <noreply@github.com>
Wed, 29 May 2024 10:25:16 +0000 (03:25 -0700)
Content.Shared/Interaction/SharedInteractionSystem.cs

index 6f6777ee96485d7cc13e44a7658334e9d91a30d4..bcde27ceba3fec9bd6a1bc5c56338f533eb50505 100644 (file)
@@ -159,7 +159,7 @@ namespace Content.Shared.Interaction
             if (uiComp == null)
                 return;
 
-            if (uiComp.SingleUser && uiComp.CurrentSingleUser != ev.Actor)
+            if (uiComp.SingleUser && uiComp.CurrentSingleUser != null && uiComp.CurrentSingleUser != ev.Actor)
             {
                 ev.Cancel();
                 return;