mirror of
https://github.com/corvax-team/ss14-wl.git
synced 2026-02-15 03:31:38 +01:00
Fix filter popup prediction spam (#16274)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user