Skip to content

Commit

Permalink
im crying
Browse files Browse the repository at this point in the history
  • Loading branch information
Snirozu committed Dec 8, 2024
1 parent 96e7444 commit ebd5c6d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2579,14 +2579,17 @@ class PlayState extends MusicBeatState
while (unspawnNotes.length > 0 && unspawnNotes[0].strumTime - Conductor.songPosition < time)
{
var dunceNote:Note = unspawnNotes[0];
notes.insert(0, dunceNote);
notes.unshift(dunceNote);
dunceNote.spawned = true;

callOnLuas('onSpawnNote', [notes.members.indexOf(dunceNote), dunceNote.noteData, dunceNote.noteType, dunceNote.isSustainNote, dunceNote.strumTime]);
callOnLuas('onSpawnNote', [0, dunceNote.noteData, dunceNote.noteType, dunceNote.isSustainNote, dunceNote.strumTime]);
callOnHScript('onSpawnNote', [dunceNote]);

var index:Int = unspawnNotes.indexOf(dunceNote);
unspawnNotes.splice(index, 1);
unspawnNotes.shift();

// insert tesla and einstein png here
// var index:Int = unspawnNotes.indexOf(dunceNote);
// unspawnNotes.splice(index, 1);
}
}

Expand Down

0 comments on commit ebd5c6d

Please sign in to comment.