PopupSystem now uses Filter methods for getting players from entities. (#4751)
This commit is contained in:
committed by
GitHub
parent
45d62f6eed
commit
3e2a8738a9
@@ -22,11 +22,5 @@ namespace Content.Server.Popups
|
||||
{
|
||||
RaiseNetworkEvent(new PopupEntityEvent(message, uid), filter);
|
||||
}
|
||||
|
||||
public override Filter GetFilterFromEntity(IEntity entity)
|
||||
{
|
||||
return entity.TryGetComponent(out ActorComponent? actor)
|
||||
? Filter.SinglePlayer(actor.PlayerSession) : Filter.Empty();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user