fix: Fixes provocation for pre-pub 16 (#1335)
This commit is contained in:
parent
44c69620a6
commit
3cf6db73f0
6 changed files with 28 additions and 32 deletions
|
|
@ -166,16 +166,14 @@ namespace Server.Misc
|
|||
|
||||
private static string GetFormattedInfo(string code)
|
||||
{
|
||||
if (code?.Length != 3)
|
||||
if (code?.Length == 3)
|
||||
{
|
||||
return $"Unknown code {code}";
|
||||
}
|
||||
|
||||
for (var i = 0; i < InternationalCodes.Length; i++)
|
||||
{
|
||||
if (code == InternationalCodes[i].Code)
|
||||
for (var i = 0; i < InternationalCodes.Length; i++)
|
||||
{
|
||||
return $"{InternationalCodes[i].GetName()}";
|
||||
if (code == InternationalCodes[i].Code)
|
||||
{
|
||||
return InternationalCodes[i].GetName();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue