Fix filter popup prediction spam (#16274)

This commit is contained in:
metalgearsloth
2023-05-10 10:00:58 +10:00
committed by GitHub
parent ee0a1d043c
commit bf5d706e70

View File

@@ -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);
}