Fixed Fishing Rod encounter crash

This commit is contained in:
JappaWakka 2023-01-15 20:01:59 +01:00
parent aa982addbe
commit 529e95ad2e
1 changed files with 6 additions and 2 deletions

View File

@ -145,8 +145,12 @@ Public Class Spawner
If r < x Then
Dim levelCap() As String = LevelCaps(i).Split(CChar(","))
Dim minLevel As Integer = CInt(levelCap(0))
Dim maxLevel As Integer = CInt(levelCap(1))
Dim maxLevel As Integer
If levelCap.Count > 1 Then
maxLevel = CInt(levelCap(1))
Else
maxLevel = minLevel
End If
If maxLevel < minLevel Then
maxLevel = minLevel
End If