From 9833732c22a7d8d9033e5e6d3ad56cadf94d7cd3 Mon Sep 17 00:00:00 2001 From: Shank Date: Sun, 5 Jun 2011 22:42:01 -0600 Subject: [PATCH] Removed CheckInventory(int ply) - It doesn't fucking work. --- TShockAPI/TShock.cs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index a4b487e3..563a1202 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -399,7 +399,6 @@ namespace TShockAPI if (Main.netMode != 2) { return; } int plr = who; //legacy support Tools.ShowMOTD(who); - CheckInventory(who); if (HackedHealth(who) && ConfigurationManager.kickCheater && ConfigurationManager.banCheater) { TShock.Ban(who, "Hacked health."); @@ -712,23 +711,6 @@ namespace TShockAPI } return -1; } - /// - /// Stop fucking enabling this as a ban reason. Holy fucking hell, it doesn't fucking work. - /// - /// - /// - public static bool CheckInventory(int plr) - { - for (int i = 0; i < 44; i++) - { - if (Main.player[plr].inventory[i].stack > Main.player[plr].inventory[i].maxStack) - { - Log.Info(Tools.FindPlayer(plr) + " had " + Main.player[plr].inventory[i].stack.ToString() + " of " + Main.player[plr].inventory[i].name + " which has a max stack of " + Main.player[plr].inventory[i].maxStack.ToString()); - return true; - } - } - return false; - } public static bool CheckSpawn(int x, int y) {