Replace references to Main.max*whatever*count
All of the Main.maxwhatever fields have been replaced with Terraria.ID.WhateverID.Count fields.
This commit is contained in:
parent
afb966dcff
commit
b322c4c1e0
4 changed files with 30 additions and 30 deletions
|
|
@ -48,12 +48,12 @@ namespace TShockAPI.Localization
|
|||
LanguageManager.Instance.SetLanguage(GameCulture.FromCultureName(GameCulture.CultureName.English));
|
||||
}
|
||||
|
||||
for (var i = -48; i < Main.maxItemTypes; i++)
|
||||
for (var i = -48; i < Terraria.ID.ItemID.Count; i++)
|
||||
{
|
||||
ItemNames.Add(i, Lang.GetItemNameValue(i));
|
||||
}
|
||||
|
||||
for (var i = -17; i < Main.maxNPCTypes; i++)
|
||||
for (var i = -17; i < Terraria.ID.NPCID.Count; i++)
|
||||
{
|
||||
NpcNames.Add(i, Lang.GetNPCNameValue(i));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue