Update server bin & fix crash exploit

This commit is contained in:
MarioE 2013-10-09 22:29:45 -04:00
parent d3f3ff7501
commit 6b2a914f97
2 changed files with 6 additions and 0 deletions

View file

@ -2148,6 +2148,12 @@ namespace TShockAPI
byte pulley = args.Data.ReadInt8();
if (OnPlayerUpdate(plr, control, item, pos, vel, pulley))
return true;
if (pos.X < 0 || pos.Y < 0 || pos.X >= Main.maxTilesX * 16 - 16 || pos.Y >= Main.maxTilesY * 16 - 16)
{
return true;
}
if (item < 0 || item >= args.TPlayer.inventory.Length)
{
return true;