Un-revert IPlayerManager refactor (#21244)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
using Content.Server.Administration;
|
||||
using Content.Server.Administration.Managers;
|
||||
using Content.Shared.Administration;
|
||||
using Robust.Server.Player;
|
||||
using Robust.Shared.Player;
|
||||
using Robust.Shared.Toolshed;
|
||||
using Robust.Shared.Toolshed.Syntax;
|
||||
|
||||
@@ -25,7 +25,7 @@ public sealed class ACmdCommand : ToolshedCommand
|
||||
public bool CanInvoke(
|
||||
[CommandInvocationContext] IInvocationContext ctx,
|
||||
[PipedArgument] CommandSpec command,
|
||||
[CommandArgument] ValueRef<IPlayerSession> player
|
||||
[CommandArgument] ValueRef<ICommonSession> player
|
||||
)
|
||||
{
|
||||
// Deliberately discard the error.
|
||||
|
||||
@@ -4,7 +4,6 @@ using Content.Server.EUI;
|
||||
using Content.Shared.Administration;
|
||||
using Content.Shared.Bql;
|
||||
using Content.Shared.Eui;
|
||||
using Robust.Server.Player;
|
||||
using Robust.Shared.Toolshed;
|
||||
using Robust.Shared.Toolshed.Errors;
|
||||
|
||||
@@ -30,7 +29,7 @@ public sealed class VisualizeCommand : ToolshedCommand
|
||||
var ui = new ToolshedVisualizeEui(
|
||||
input.Select(e => (EntName(e), EntityManager.GetNetEntity(e))).ToArray()
|
||||
);
|
||||
_euiManager.OpenEui(ui, (IPlayerSession) ctx.Session);
|
||||
_euiManager.OpenEui(ui, ctx.Session);
|
||||
_euiManager.QueueStateUpdate(ui);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user