...item drop wouldn't work with negative IDs

This commit is contained in:
MarioE 2012-08-19 10:23:08 -04:00
parent 52fff605c7
commit 0b02b90df0

View file

@ -2464,7 +2464,7 @@ namespace TShockAPI
return true;
// player is attempting to crash clients
if (type < 0 || type >= Main.maxItemTypes)
if (type < -24 || type >= Main.maxItemTypes)
{
return true;
}