PopupSystem public methods rejig (#12830)

This commit is contained in:
Leon Friedrich
2022-12-19 10:41:47 +13:00
committed by GitHub
parent e459452333
commit 881a2b2ece
164 changed files with 721 additions and 631 deletions

View File

@@ -45,9 +45,9 @@ namespace Content.Server.Labels
{
Act = () =>
{
AddLabelTo(uid, handLabeler, target, out string? result);
AddLabelTo(uid, handLabeler, target, out var result);
if (result != null)
_popupSystem.PopupEntity(result, args.User, Filter.Entities(args.User));
_popupSystem.PopupEntity(result, args.User, args.User);
},
Text = labelerText
};
@@ -62,7 +62,7 @@ namespace Content.Server.Labels
AddLabelTo(uid, handLabeler, target, out string? result);
if (result == null)
return;
_popupSystem.PopupEntity(result, args.User, Filter.Entities(args.User));
_popupSystem.PopupEntity(result, args.User, args.User);
// Log labeling
_adminLogger.Add(LogType.Action, LogImpact.Low,