Log player inventory flags.
This commit is contained in:
parent
ae42278f16
commit
30e46173c2
1 changed files with 3 additions and 0 deletions
|
|
@ -734,7 +734,10 @@ namespace TShockAPI
|
||||||
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)
|
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 true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue