Update server bin & fix crash exploit
This commit is contained in:
parent
d3f3ff7501
commit
6b2a914f97
2 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue