From cc2fa6f57e955917d68b3ec52f1d8a552292eb74 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sat, 27 Apr 2024 15:08:50 +1000 Subject: [PATCH] Remove redundant HasUi (#27381) Doesn't fix anything but still. --- Content.Shared/UserInterface/ActivatableUISystem.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/Content.Shared/UserInterface/ActivatableUISystem.cs b/Content.Shared/UserInterface/ActivatableUISystem.cs index 5d848c0fde..452f08c094 100644 --- a/Content.Shared/UserInterface/ActivatableUISystem.cs +++ b/Content.Shared/UserInterface/ActivatableUISystem.cs @@ -208,9 +208,6 @@ public sealed partial class ActivatableUISystem : EntitySystem if (!Resolve(uid, ref aui, false)) return; - if (!_uiSystem.HasUi(uid, aui.Key)) - return; - _uiSystem.CloseUi(uid, aui.Key); }