Skip to content

Commit

Permalink
Update ToolshedTest for engine PR (space-wizards#22989)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectroJr authored Dec 27, 2023
1 parent b032d77 commit eb04a98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Content.IntegrationTests/Tests/Toolshed/ToolshedTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -95,6 +96,7 @@ public bool CheckInvokable(CommandSpec command, out IConError? error)
}

protected ICommonSession? InvocationSession { get; set; }
public NetUserId? User => Session?.UserId;

public ICommonSession? Session
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ public void InitializeCommands()
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;
Expand Down

0 comments on commit eb04a98

Please sign in to comment.