Fixed banneditems.txt not allowing over ID 200. Minor change

This commit is contained in:
Twitchy 2011-06-25 15:15:49 +12:00
parent e28e2d2132
commit bc337cdf57
2 changed files with 4 additions and 4 deletions

View file

@ -25,7 +25,7 @@ namespace TShockAPI
int ID = -1;
if (Int32.TryParse(line, out ID))
{
if (ID <= Main.item.Length)
if (ID <= 326) //MUST CHANGE ON EACH UPDATE
{
var item = Tools.GetItemById(ID);
BannedItems.Add(new ItemBan(ID, item.name));