From b93bab65d740ec63ebf123eb3a2110c8032f1b48 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Fri, 22 Dec 2017 10:21:49 -0700 Subject: [PATCH] Fix automatically disabling all players In rewriting Disable, I accidentally implemented logic that disabled all players for having banned armor. This is now fixed. --- TShockAPI/TShock.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index dc9a4fc6..2c60ef2d 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -1081,7 +1081,6 @@ namespace TShockAPI } else if (!Main.ServerSideCharacter || (Main.ServerSideCharacter && player.IsLoggedIn)) { - string check = "none"; if (!player.HasPermission(Permissions.ignorestackhackdetection)) { player.IsDisabledForStackDetection = player.HasHackedItemStacks(shouldWarnPlayer: true); @@ -1140,7 +1139,8 @@ namespace TShockAPI break; } } - player.IsDisabledForBannedWearable = true; + if (check != "none") + player.IsDisabledForBannedWearable = true; if (player.IsBeingDisabled()) {