Replace calls to Main.buffName to Lang.GetBuffName

This commit is contained in:
Lucas Nicodemus 2017-04-19 17:22:46 -06:00
parent d2705d785b
commit 46c42536c9
No known key found for this signature in database
GPG key ID: CEE668CCE1BF2C7C
2 changed files with 8 additions and 8 deletions

View file

@ -5517,7 +5517,7 @@ namespace TShockAPI
}
else if (found.Count > 1)
{
TShock.Utils.SendMultipleMatchError(args.Player, found.Select(f => Main.buffName[f]));
TShock.Utils.SendMultipleMatchError(args.Player, found.Select(f => Lang.GetBuffName(f)));
return;
}
id = found[0];
@ -5568,7 +5568,7 @@ namespace TShockAPI
}
else if (found.Count > 1)
{
TShock.Utils.SendMultipleMatchError(args.Player, found.Select(b => Main.buffName[b]));
TShock.Utils.SendMultipleMatchError(args.Player, found.Select(b => Lang.GetBuffName(b)));
return;
}
id = found[0];