Skip to content

Commit

Permalink
Cherry-Pick Wizden PR 28375 (#1191)
Browse files Browse the repository at this point in the history
# Description

Cherry-picks
space-wizards/space-station-14#28375 to fix an
issue with BUIs closing themselves.

Co-authored-by: metalgearsloth <[email protected]>
  • Loading branch information
VMSolidus and metalgearsloth authored Nov 9, 2024
1 parent a2b86bc commit 4713261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Shared/Interaction/SharedInteractionSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private void OnBoundInterfaceInteractAttempt(BoundUserInterfaceMessageAttempt ev
if (uiComp == null)
return;

if (uiComp.SingleUser && uiComp.CurrentSingleUser != ev.Actor)
if (uiComp.SingleUser && uiComp.CurrentSingleUser != null && uiComp.CurrentSingleUser != ev.Actor)
{
ev.Cancel();
return;
Expand Down

0 comments on commit 4713261

Please sign in to comment.