From 061b1b8adb5c10962e3dd9977b183a57268541e3 Mon Sep 17 00:00:00 2001 From: Token <56667933+TokenStyle@users.noreply.github.com> Date: Sun, 1 Dec 2024 01:11:44 +0500 Subject: [PATCH] Fix makeghostroleraffle command where 4 arguments (#31836) Fix makeghostroleraffle command with 4 arguments --- Content.Server/Ghost/Roles/MakeRaffledGhostRoleCommand.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.51.2