mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-04-08 18:35:09 +02:00
Fixed Kanto badges not showing in trainer card
This commit is contained in:
parent
7a3767bc09
commit
dc736b66eb
@ -164,7 +164,7 @@ Public Class Badge
|
||||
Public Shared Function GetRegion(ByVal index As Integer) As String
|
||||
Dim regions As New List(Of String)
|
||||
For Each b As BadgeDeclaration In Badges
|
||||
If regions.Any(Function(m As String) m.ToLowerInvariant() = b.Region.ToLowerInvariant()) Then
|
||||
If Not regions.Any(Function(m As String) m.ToLowerInvariant() = b.Region.ToLowerInvariant()) Then
|
||||
regions.Add(b.Region)
|
||||
End If
|
||||
Next
|
||||
@ -195,7 +195,7 @@ Public Class Badge
|
||||
Public Shared Function GetRegionCount() As Integer
|
||||
Dim regions As New List(Of String)
|
||||
For Each b As BadgeDeclaration In Badges
|
||||
If regions.Any(Function(m As String) m.ToLowerInvariant() = b.Region.ToLowerInvariant()) Then
|
||||
If Not regions.Any(Function(m As String) m.ToLowerInvariant() = b.Region.ToLowerInvariant()) Then
|
||||
regions.Add(b.Region)
|
||||
End If
|
||||
Next
|
||||
|
Loading…
x
Reference in New Issue
Block a user