Item drop crash exploit

This commit is contained in:
MarioE 2012-07-24 14:47:23 -04:00
parent 50681d0d38
commit 9351ece26e

View file

@ -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;