Revert "Update submodule to 172.0.0 (#21222)" (#21225)

This commit is contained in:
metalgearsloth
2023-10-24 21:55:20 +11:00
committed by GitHub
parent 517aea8bc3
commit a2bbda43cc
249 changed files with 1049 additions and 967 deletions

View File

@@ -10,9 +10,10 @@ using Content.Shared.CCVar;
using Content.Shared.CrewManifest;
using Content.Shared.GameTicking;
using Content.Shared.StationRecords;
using Robust.Server.Player;
using Robust.Shared.Configuration;
using Robust.Shared.Console;
using Robust.Shared.Player;
using Robust.Shared.Players;
namespace Content.Server.CrewManifest;
@@ -59,7 +60,7 @@ public sealed class CrewManifestSystem : EntitySystem
private void OnRequestCrewManifest(RequestCrewManifestMessage message, EntitySessionEventArgs args)
{
if (args.SenderSession is not { } sessionCast
if (args.SenderSession is not IPlayerSession sessionCast
|| !_configManager.GetCVar(CCVars.CrewManifestWithoutEntity))
{
return;
@@ -92,12 +93,12 @@ public sealed class CrewManifestSystem : EntitySystem
private void OnBoundUiClose(EntityUid uid, CrewManifestViewerComponent component, BoundUIClosedEvent ev)
{
var owningStation = _stationSystem.GetOwningStation(uid);
if (owningStation == null || ev.Session is not { } session)
if (owningStation == null || ev.Session is not IPlayerSession sessionCast)
{
return;
}
CloseEui(owningStation.Value, session, uid);
CloseEui(owningStation.Value, sessionCast, uid);
}
/// <summary>
@@ -125,7 +126,7 @@ public sealed class CrewManifestSystem : EntitySystem
private void OpenEuiFromBui(EntityUid uid, CrewManifestViewerComponent component, CrewManifestOpenUiMessage msg)
{
var owningStation = _stationSystem.GetOwningStation(uid);
if (owningStation == null || msg.Session is not { } session)
if (owningStation == null || msg.Session is not IPlayerSession sessionCast)
{
return;
}
@@ -135,7 +136,7 @@ public sealed class CrewManifestSystem : EntitySystem
return;
}
OpenEui(owningStation.Value, session, uid);
OpenEui(owningStation.Value, sessionCast, uid);
}
/// <summary>
@@ -144,7 +145,7 @@ public sealed class CrewManifestSystem : EntitySystem
/// <param name="station">Station that we're displaying the crew manifest for.</param>
/// <param name="session">The player's session.</param>
/// <param name="owner">If this EUI should be 'owned' by an entity.</param>
public void OpenEui(EntityUid station, ICommonSession session, EntityUid? owner = null)
public void OpenEui(EntityUid station, IPlayerSession session, EntityUid? owner = null)
{
if (!HasComp<StationRecordsComponent>(station))
{
@@ -251,7 +252,7 @@ public sealed class CrewManifestCommand : IConsoleCommand
return;
}
if (shell.Player == null || shell.Player is not { } session)
if (shell.Player == null || shell.Player is not IPlayerSession session)
{
shell.WriteLine("You must run this from a client.");
return;