From 25b213cccb5ee70e0854aed86dba6bfc18cad395 Mon Sep 17 00:00:00 2001 From: Frakist <90983918+Frakist@users.noreply.github.com> Date: Thu, 2 Nov 2023 19:27:32 +0300 Subject: [PATCH] make nextNote have a purpose --- source/funkin/game/Note.hx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/funkin/game/Note.hx b/source/funkin/game/Note.hx index d5339904..b0be52d9 100644 --- a/source/funkin/game/Note.hx +++ b/source/funkin/game/Note.hx @@ -111,6 +111,8 @@ class Note extends FlxSprite this.prevNote = prev; else this.prevNote = strumLine.notes.members.last(); + + if (this.prevNote != null) this.prevNote.nextNote = this; this.noteTypeID = noteData.type.getDefault(0); this.isSustainNote = sustain; this.sustainLength = sustainLength;