anti-dumbass protection

This commit is contained in:
Kade M 2021-06-25 15:06:06 -07:00
parent 3a54c04266
commit 5105c95929

View File

@ -1594,6 +1594,18 @@ class PlayState extends MusicBeatState
swagNote.sustainLength = songNotes[2]; swagNote.sustainLength = songNotes[2];
swagNote.scrollFactor.set(0, 0); swagNote.scrollFactor.set(0, 0);
var addNote = false;
for (i in unspawnNotes)
if (i.strumTime == daStrumTime && i.noteData == daNoteData)
addNote = true;
if (addNote)
{
trace('stacked note, thats cringe');
continue;
}
var susLength:Float = swagNote.sustainLength; var susLength:Float = swagNote.sustainLength;
susLength = susLength / Conductor.stepCrochet; susLength = susLength / Conductor.stepCrochet;