]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix makeghostroleraffle command where 4 arguments (#31836)
authorToken <56667933+TokenStyle@users.noreply.github.com>
Sat, 30 Nov 2024 20:11:44 +0000 (01:11 +0500)
committerGitHub <noreply@github.com>
Sat, 30 Nov 2024 20:11:44 +0000 (21:11 +0100)
Fix makeghostroleraffle command with 4 arguments

Content.Server/Ghost/Roles/MakeRaffledGhostRoleCommand.cs

index 5f5eabdad4051bec1a36ea442e39feba4d8543d6..5827ab802f6396bddec66d8ad75b85699910af59 100644 (file)
@@ -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<GhostRoleRaffleSettingsPrototype>(args[4], out var proto))
+                if (!_protoManager.TryIndex<GhostRoleRaffleSettingsPrototype>(args[3], out var proto))
                 {
                     var validProtos = string.Join(", ",
                         _protoManager.EnumeratePrototypes<GhostRoleRaffleSettingsPrototype>().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;
                 }