Fixed banneditems.txt not allowing over ID 200. Minor change
This commit is contained in:
parent
e28e2d2132
commit
bc337cdf57
2 changed files with 4 additions and 4 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue