From: Token <56667933+TokenStyle@users.noreply.github.com> Date: Sat, 30 Nov 2024 20:11:44 +0000 (+0500) Subject: Fix makeghostroleraffle command where 4 arguments (#31836) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=061b1b8adb5c10962e3dd9977b183a57268541e3;p=space-station-14.git Fix makeghostroleraffle command where 4 arguments (#31836) Fix makeghostroleraffle command with 4 arguments --- diff --git a/Content.Server/Ghost/Roles/MakeRaffledGhostRoleCommand.cs b/Content.Server/Ghost/Roles/MakeRaffledGhostRoleCommand.cs index 5f5eabdad4..5827ab802f 100644 --- a/Content.Server/Ghost/Roles/MakeRaffledGhostRoleCommand.cs +++ b/Content.Server/Ghost/Roles/MakeRaffledGhostRoleCommand.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using Content.Server.Administration; using Content.Server.Ghost.Roles.Components; using Content.Server.Ghost.Roles.Raffles; @@ -77,13 +77,13 @@ namespace Content.Server.Ghost.Roles if (isProto) { - if (!_protoManager.TryIndex(args[4], out var proto)) + if (!_protoManager.TryIndex(args[3], out var proto)) { var validProtos = string.Join(", ", _protoManager.EnumeratePrototypes().Select(p => p.ID) ); - shell.WriteLine($"{args[4]} is not a valid raffle settings prototype. Valid options: {validProtos}"); + shell.WriteLine($"{args[3]} is not a valid raffle settings prototype. Valid options: {validProtos}"); return; }