Fix popup bugs (#13233)

This commit is contained in:
Leon Friedrich
2022-12-31 12:46:04 +13:00
committed by GitHub
parent 89ea6eda3e
commit 2f4e90a3e0
2 changed files with 5 additions and 5 deletions

View File

@@ -109,13 +109,13 @@ namespace Content.Client.Popups
public override void PopupEntity(string message, EntityUid uid, EntityUid recipient, PopupType type = PopupType.Small)
{
if (_playerManager.LocalPlayer?.ControlledEntity == recipient)
PopupCursor(message, type);
PopupEntity(message, uid, type);
}
public override void PopupEntity(string message, EntityUid uid, ICommonSession recipient, PopupType type = PopupType.Small)
{
if (_playerManager.LocalPlayer?.Session == recipient)
PopupCursor(message, type);
PopupEntity(message, uid, type);
}
public override void PopupEntity(string message, EntityUid uid, Filter filter, bool recordReplay, PopupType type=PopupType.Small)