Forgot to change the note to a hold type when making it.

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
sigonasr2, Sig, Sigo 2021-10-14 01:49:08 +00:00
parent fadbf89f1e
commit 287fb0535b

View File

@ -399,6 +399,7 @@ public class LLSIG implements KeyListener{
Note lastNote = LLSIG.game.lanes.get(lane).lastNoteAdded; Note lastNote = LLSIG.game.lanes.get(lane).lastNoteAdded;
if (lastNote!=null) { if (lastNote!=null) {
if (noteBeat-lastNote.getBeatSnap()>=1) { if (noteBeat-lastNote.getBeatSnap()>=1) {
lastNote.setNoteType(NoteType.HOLD);
lastNote.setBeatSnapEnd(noteBeat); lastNote.setBeatSnapEnd(noteBeat);
lastNote.active2=false; lastNote.active2=false;
LLSIG.game.lanes.get(lane).lastNoteAdded=null; LLSIG.game.lanes.get(lane).lastNoteAdded=null;