From 5463adfce8b0de8c31f8bf5704f5d2b4350c67fb Mon Sep 17 00:00:00 2001 From: Ijwu Date: Sun, 20 Jul 2014 20:20:42 -0400 Subject: [PATCH] Bugfix in /v2/world/butcher endpoint killfriendly parameter now does something. --- TShockAPI/Rest/RestManager.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/TShockAPI/Rest/RestManager.cs b/TShockAPI/Rest/RestManager.cs index a4ad0502..37b4a899 100644 --- a/TShockAPI/Rest/RestManager.cs +++ b/TShockAPI/Rest/RestManager.cs @@ -504,9 +504,6 @@ namespace TShockAPI if (!bool.TryParse(parameters["killfriendly"], out killFriendly)) return RestInvalidParam("killfriendly"); - if (killFriendly) - killFriendly = !killFriendly; - int killcount = 0; for (int i = 0; i < Main.npc.Length; i++) {