Resolve duplicate negative ids items in Utils.GetItemByName
This commit is contained in:
parent
72a547441b
commit
961c857c4b
1 changed files with 1 additions and 1 deletions
|
|
@ -346,7 +346,7 @@ namespace TShockAPI
|
|||
string nameLower = name.ToLowerInvariant();
|
||||
var checkEnglish = Language.ActiveCulture != GameCulture.English;
|
||||
|
||||
for (int i = -48; i < Main.maxItemTypes; i++)
|
||||
for (int i = 1; i < Main.maxItemTypes; i++)
|
||||
{
|
||||
item.netDefaults(i);
|
||||
if (!String.IsNullOrWhiteSpace(item.Name))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue