Item drop crash exploit
This commit is contained in:
parent
50681d0d38
commit
9351ece26e
1 changed files with 5 additions and 0 deletions
|
|
@ -2448,6 +2448,11 @@ namespace TShockAPI
|
|||
if (OnItemDrop(id, pos, vel, stacks, prefix, type))
|
||||
return true;
|
||||
|
||||
// player is attempting to crash clients
|
||||
if (type < 0 || type >= Main.maxItemTypes)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (type == 0) //Item removed, let client do this to prevent item duplication client side
|
||||
{
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue