Skip to content

Commit

Permalink
E
Browse files Browse the repository at this point in the history
fixed a bug where enabling JS Engine Recharts would loop the first song in a week other than the main 7
  • Loading branch information
JordanSantiagoYT committed Nov 9, 2023
1 parent 5a8e48a commit 6495b3b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -7272,12 +7272,16 @@ if (unspawnNotes[0] != null && (Conductor.songPosition + 1800 / songSpeed) >= fi
prevCamFollowPos = camFollowPos;


if (storyDifficulty == 2 && ClientPrefs.JSEngineRecharts)
if (storyDifficulty == 2)
{
for (i in 0...CoolUtil.defaultSongs.length) {
if (Paths.formatToSongPath(SONG.song) == CoolUtil.defaultSongs[i]) {
for (defaultSong in CoolUtil.defaultSongs) {
if (ClientPrefs.JSEngineRecharts && CoolUtil.defaultSongs.contains(PlayState.storyPlaylist[0].toLowerCase())) {
PlayState.SONG = Song.loadFromJson(PlayState.storyPlaylist[0] + '-jshard', PlayState.storyPlaylist[0]);
PlayState.storyDifficulty == 2;
break;
}
else if (ClientPrefs.JSEngineRecharts && !CoolUtil.defaultSongs.contains(PlayState.storyPlaylist[0].toLowerCase())) {
PlayState.SONG = Song.loadFromJson(PlayState.storyPlaylist[0] + difficulty, PlayState.storyPlaylist[0]);
break;
}
}
} else {
Expand Down

0 comments on commit 6495b3b

Please sign in to comment.