Skip to content

Commit

Permalink
Fix errors when playing tutorial (#74)
Browse files Browse the repository at this point in the history
Co-authored-by: Shadnix <[email protected]>
  • Loading branch information
opl- and Shadnix-was-taken committed Sep 24, 2021
1 parent 10bcc7a commit dccac51
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions BeatSaberHTTPStatus/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,12 @@ public void HandleMenuStart() {
}

public async void HandleSongStart() {
// Check if level data is actually available in BS_Utils before proceeding further. It isn't available in the tutorial
if (!BS_Utils.Plugin.LevelData.IsSet) {
Plugin.log.Debug("BS_Utils level data is not present. Probably due to the tutorial being active.");
return;
}

GameStatus gameStatus = statusManager.gameStatus;

// Check for multiplayer early to abort if needed: gameplay controllers don't exist in multiplayer until later
Expand Down

0 comments on commit dccac51

Please sign in to comment.