Some fix against Zidonuke's inventory out of bounds exploit.
This commit is contained in:
parent
71a518830c
commit
2eb1084566
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue