PopupSystem now uses Filter methods for getting players from entities. (#4751)
This commit is contained in:
committed by
GitHub
parent
45d62f6eed
commit
3e2a8738a9
@@ -79,24 +79,24 @@ namespace Content.Client.Popups
|
||||
{
|
||||
if (!filter.CheckPrediction)
|
||||
return;
|
||||
|
||||
PopupCursor(message);
|
||||
}
|
||||
|
||||
public override void PopupCoordinates(string message, EntityCoordinates coordinates, Filter filter)
|
||||
{
|
||||
if (!filter.CheckPrediction)
|
||||
return;
|
||||
|
||||
PopupCoordinates(message, coordinates);
|
||||
}
|
||||
|
||||
public override void PopupEntity(string message, EntityUid uid, Filter filter)
|
||||
{
|
||||
if (!filter.CheckPrediction)
|
||||
return;
|
||||
}
|
||||
|
||||
public override Filter GetFilterFromEntity(IEntity entity)
|
||||
{
|
||||
return _playerManager.LocalPlayer?.ControlledEntity == entity
|
||||
? Filter.Local() : Filter.Empty().Unpredicted();
|
||||
PopupEntity(message, uid);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user