From 9648fe1060823834567a2adb89555874a64398ce Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sat, 26 May 2012 02:49:48 -0600 Subject: [PATCH] Forgot to remove checks on 1+ args for /butcher --- TShockAPI/Commands.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 7238528f..8c7a1df8 100644 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -3111,15 +3111,15 @@ namespace TShockAPI private static void Butcher(CommandArgs args) { - if (args.Parameters.Count > 2) + if (args.Parameters.Count > 1) { args.Player.SendMessage("Invalid syntax! Proper syntax: /butcher [killTownNPCs(true/false)]", Color.Red); return; } bool killTownNPCs = false; - if (args.Parameters.Count == 2) - bool.TryParse(args.Parameters[1], out killTownNPCs); + if (args.Parameters.Count == 1) + bool.TryParse(args.Parameters[0], out killTownNPCs); int killcount = 0; for (int i = 0; i < Main.npc.Length; i++)