Un-revert IPlayerManager refactor (#21244)

This commit is contained in:
Leon Friedrich
2023-10-28 09:59:53 +11:00
committed by GitHub
parent c55e1dcafd
commit e685cb626b
245 changed files with 781 additions and 943 deletions

View File

@@ -5,6 +5,7 @@ using Content.Shared.FixedPoint;
using Robust.Server.Player;
using Robust.Shared.Configuration;
using Robust.Shared.Console;
using Robust.Shared.Player;
namespace Content.Server.Traitor.Uplink.Commands
{
@@ -36,7 +37,7 @@ namespace Content.Server.Traitor.Uplink.Commands
return;
}
IPlayerSession? session;
ICommonSession? session;
if (args.Length > 0)
{
// Get player entity
@@ -48,7 +49,7 @@ namespace Content.Server.Traitor.Uplink.Commands
}
else
{
session = (IPlayerSession?) shell.Player;
session = shell.Player;
}
if (session?.AttachedEntity is not { } user)