Use actual name instead of Reflecrtion
This commit is contained in:
parent
1ee8058776
commit
f57d03ab61
1 changed files with 2 additions and 1 deletions
|
|
@ -68,7 +68,8 @@ namespace TShockAPI.Localization
|
|||
foreach (var field in typeof(Main).Assembly.GetType("Terraria.ID.PrefixID")
|
||||
.GetFields().Where(f => !f.Name.Equals("Count", StringComparison.Ordinal)))
|
||||
{
|
||||
Prefixs.Add((int)field.GetValue(null), field.Name);
|
||||
var i = (int)field.GetValue(null);
|
||||
Prefixs.Add(i, Lang.prefix[i].Value);
|
||||
}
|
||||
}
|
||||
finally
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue