Skip to content

Commit

Permalink
Don't crash on Lightshow
Browse files Browse the repository at this point in the history
  • Loading branch information
leapwill committed Nov 3, 2021
1 parent 164a421 commit 433257d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions BeatSaberStats.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ function ForEach-Thread {
$difficultyInfo = $characteristicBeatmapSet._difficultyBeatmaps[$difficultyIdx]
$isFinalHashedFile = ($difficultyIdx -eq $characteristicBeatmapSet._difficultyBeatmaps.Length - 1) -and ($characteristicIdx -eq $levelInfoSrc._difficultyBeatmapSets.Length - 1)
$beatmapNotes = (Load-HashedJson $hasher (Join-Path $levelInfoFile.DirectoryName $difficultyInfo._beatmapFilename) $isFinalHashedFile)._notes
if ($beatmapNotes.Length -eq 0) {
continue
}
# TODO one-hand/90/360/lightshow _difficultyBeatmapSets
if ($characteristicBeatmapSet._beatmapCharacteristicName -eq 'Standard' -or $levelInfoSrc._difficultyBeatmapSets.Length -eq 1) {
$prefix = $DifficultyRankMap[[Math]::Floor($difficultyInfo._difficultyRank / 2)]
Expand Down

0 comments on commit 433257d

Please sign in to comment.