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.GameTicking;
|
||||||
using Content.Shared.Popups;
|
using Content.Shared.Popups;
|
||||||
using Robust.Client.Graphics;
|
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)
|
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);
|
PopupEntity(message, uid, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user