optimization for claps as well

This commit is contained in:
KadeDeveloper 2021-08-13 15:01:03 -07:00
parent 94b6cba78d
commit 2b13c590fe

View File

@ -2132,14 +2132,14 @@ class ChartingState extends MusicBeatState
if (playClaps) if (playClaps)
{ {
curRenderedNotes.forEach(function(note:Note) for(note in shownNotes)
{ {
if (note.strumTime <= Conductor.songPosition && !claps.contains(note)) if (note.strumTime <= Conductor.songPosition && !claps.contains(note))
{ {
claps.push(note); claps.push(note);
FlxG.sound.play(Paths.sound('SNAP')); FlxG.sound.play(Paths.sound('SNAP'));
} }
}); }
} }
/*curRenderedNotes.forEach(function(note:Note) { /*curRenderedNotes.forEach(function(note:Note) {
if (strumLine.overlaps(note) && strumLine.y == note.y) // yandere dev type shit if (strumLine.overlaps(note) && strumLine.y == note.y) // yandere dev type shit