From bf5d706e700e129999f516a3d3621b8fc6136fd6 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Wed, 10 May 2023 10:00:58 +1000 Subject: [PATCH] Fix filter popup prediction spam (#16274) --- Content.Client/Popups/PopupSystem.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Content.Client/Popups/PopupSystem.cs b/Content.Client/Popups/PopupSystem.cs index 573c45617a..58e3044591 100644 --- a/Content.Client/Popups/PopupSystem.cs +++ b/Content.Client/Popups/PopupSystem.cs @@ -1,3 +1,4 @@ +using System.Linq; using Content.Shared.GameTicking; using Content.Shared.Popups; using Robust.Client.Graphics; @@ -122,6 +123,9 @@ namespace Content.Client.Popups public override void PopupEntity(string message, EntityUid uid, Filter filter, bool recordReplay, PopupType type=PopupType.Small) { + if (!filter.Recipients.Contains(_playerManager.LocalPlayer?.Session)) + return; + PopupEntity(message, uid, type); } -- 2.51.2