From f5e98d60ea8426223ffb8687b57074b3ac818e17 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Thu, 8 Sep 2022 16:08:32 +1200 Subject: [PATCH] Fix alerts clearing on PlayerDetached (#11112) --- Content.Client/Alerts/ClientAlertsSystem.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/Content.Client/Alerts/ClientAlertsSystem.cs b/Content.Client/Alerts/ClientAlertsSystem.cs index 9981c54381..8c4d790230 100644 --- a/Content.Client/Alerts/ClientAlertsSystem.cs +++ b/Content.Client/Alerts/ClientAlertsSystem.cs @@ -95,9 +95,6 @@ internal sealed class ClientAlertsSystem : AlertsSystem private void OnPlayerDetached(EntityUid uid, AlertsComponent component, PlayerDetachedEvent args) { - if (_playerManager.LocalPlayer?.ControlledEntity != uid) - return; - ClearAlerts?.Invoke(this, EventArgs.Empty); }