PopupSystem public methods rejig (#12830)
This commit is contained in:
@@ -92,7 +92,7 @@ public sealed partial class ShuttleSystem
|
||||
if (!_configManager.GetCVar(CCVars.EmergencyEarlyLaunchAllowed))
|
||||
{
|
||||
args.Cancel();
|
||||
_popup.PopupEntity(Loc.GetString("emergency-shuttle-console-no-early-launches"), uid, Filter.Entities(args.User));
|
||||
_popup.PopupEntity(Loc.GetString("emergency-shuttle-console-no-early-launches"), uid, args.User);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -182,7 +182,7 @@ public sealed partial class ShuttleSystem
|
||||
|
||||
if (!_reader.FindAccessTags(player.Value).Contains(EmergencyRepealAllAccess))
|
||||
{
|
||||
_popup.PopupCursor(Loc.GetString("emergency-shuttle-console-denied"), Filter.Entities(player.Value), PopupType.Medium);
|
||||
_popup.PopupCursor(Loc.GetString("emergency-shuttle-console-denied"), player.Value, PopupType.Medium);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -201,7 +201,7 @@ public sealed partial class ShuttleSystem
|
||||
|
||||
if (!_idSystem.TryFindIdCard(player.Value, out var idCard) || !_reader.IsAllowed(idCard.Owner, uid))
|
||||
{
|
||||
_popup.PopupCursor(Loc.GetString("emergency-shuttle-console-denied"), Filter.Entities(player.Value), PopupType.Medium);
|
||||
_popup.PopupCursor(Loc.GetString("emergency-shuttle-console-denied"), player.Value, PopupType.Medium);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -222,7 +222,7 @@ public sealed partial class ShuttleSystem
|
||||
|
||||
if (!_idSystem.TryFindIdCard(player.Value, out var idCard) || !_reader.IsAllowed(idCard.Owner, uid))
|
||||
{
|
||||
_popup.PopupCursor(Loc.GetString("emergency-shuttle-console-denied"), Filter.Entities(player.Value), PopupType.Medium);
|
||||
_popup.PopupCursor(Loc.GetString("emergency-shuttle-console-denied"), args.Session, PopupType.Medium);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user