offsets null fix quick

This commit is contained in:
Cameron Taylor 2023-12-08 01:57:46 -05:00
parent 8d8b8743ae
commit 8f30532ed4

View file

@ -568,7 +568,12 @@ class PlayState extends MusicBeatSubState
// Prepare the Conductor.
Conductor.forceBPM(null);
Conductor.instrumentalOffset = currentChart.offsets.getInstrumentalOffset();
if (currentChart.offsets != null)
{
Conductor.instrumentalOffset = currentChart.offsets.getInstrumentalOffset();
}
Conductor.mapTimeChanges(currentChart.timeChanges);
Conductor.update((Conductor.beatLengthMs * -5) + startTimestamp);