From daf56053c8b5822839f347be3d76ea8d797bea50 Mon Sep 17 00:00:00 2001 From: Deathmax Date: Fri, 3 Jun 2011 10:51:02 +0800 Subject: [PATCH] Remove item max stack check. --- TShockAPI/Commands.cs | 2 +- TShockAPI/TShock.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 52cd9c3c..9519e965 100644 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -68,7 +68,7 @@ namespace TShockAPI Tools.Broadcast(plStr + " was kicked by " + Tools.FindPlayer(ply)); } else - Tools.SendMessage(ply, "You can't ban another admin!", new float[] { 255f, 0f, 0f }); + Tools.SendMessage(ply, "You can't kick another admin!", new float[] { 255f, 0f, 0f }); } else Tools.SendMessage(ply, "Invalid player!", new float[] { 255f, 0f, 0f }); diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index bc981905..87b11fe0 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -466,11 +466,11 @@ namespace TShockAPI public static bool CheckInventory(int plr) { - for (int i = 0; i < 44; i++) + /*for (int i = 0; i < 44; i++) { if (Main.player[plr].inventory[i].stack > Main.player[plr].inventory[i].maxStack) return true; - } + }*/ return false; } }