Some fix against Zidonuke's inventory out of bounds exploit.

This commit is contained in:
Deathmax 2011-07-02 17:21:58 +08:00
parent 71a518830c
commit 2eb1084566

View file

@ -351,6 +351,11 @@ namespace TShockAPI
return Tools.HandleGriefer(args.Player, "Update Player abuse");
}
if (item < 0 || item > args.TPlayer.inventory.Length)
{
return Tools.HandleGriefer(args.Player, "Update Player abuse");
}
return false;
}