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) {