Log player inventory flags.

This commit is contained in:
Deathmax 2011-06-05 17:23:52 +08:00
parent ae42278f16
commit 30e46173c2

View file

@ -734,7 +734,10 @@ namespace TShockAPI
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;
}