From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Wed, 10 May 2023 00:00:58 +0000 (+1000) Subject: Fix filter popup prediction spam (#16274) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=bf5d706e700e129999f516a3d3621b8fc6136fd6;p=space-station-14.git Fix filter popup prediction spam (#16274) --- 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); }