From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Wed, 27 Dec 2023 21:51:42 +0000 (-0500) Subject: Update ToolshedTest for engine PR (#22989) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=eb04a982948bd4378d297f7796725450e6cc8146;p=space-station-14.git Update ToolshedTest for engine PR (#22989) --- diff --git a/Content.IntegrationTests/Tests/Toolshed/ToolshedTest.cs b/Content.IntegrationTests/Tests/Toolshed/ToolshedTest.cs index d6aec781a9..1c9abc9632 100644 --- a/Content.IntegrationTests/Tests/Toolshed/ToolshedTest.cs +++ b/Content.IntegrationTests/Tests/Toolshed/ToolshedTest.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using Content.IntegrationTests.Pair; using Content.Server.Administration.Managers; +using Robust.Shared.Network; using Robust.Shared.Player; using Robust.Shared.Toolshed; using Robust.Shared.Toolshed.Errors; @@ -95,6 +96,7 @@ public abstract class ToolshedTest : IInvocationContext } protected ICommonSession? InvocationSession { get; set; } + public NetUserId? User => Session?.UserId; public ICommonSession? Session { diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.Commands.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.Commands.cs index 649a7a34f1..d840a1f209 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.Commands.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.Commands.cs @@ -23,7 +23,10 @@ public partial class ArtifactSystem private void ForceArtifactNode(IConsoleShell shell, string argstr, string[] args) { if (args.Length != 2) + { shell.WriteError("Argument length must be 2"); + return; + } if (!NetEntity.TryParse(args[0], out var uidNet) || !TryGetEntity(uidNet, out var uid) || !int.TryParse(args[1], out var id)) return;