From 527ae09996d123e212dd85b740cebe505072f2f0 Mon Sep 17 00:00:00 2001 From: HEIHUAa <112499486+HEIHUAa@users.noreply.github.com> Date: Thu, 9 Apr 2026 21:03:33 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20StrumLine.hx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/funkin/game/StrumLine.hx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/funkin/game/StrumLine.hx b/source/funkin/game/StrumLine.hx index 9c00acd081..783c6be55a 100644 --- a/source/funkin/game/StrumLine.hx +++ b/source/funkin/game/StrumLine.hx @@ -343,9 +343,8 @@ class StrumLine extends FlxTypedGroup { notes.forEachAlive(__inputProcessPressed); } - forEach(function(str:Strum) { - str.updatePlayerInput(__pressed[str.ID], __justPressed[str.ID], __justReleased[str.ID]); - }); + for (i => str in members) + str.updatePlayerInput(__pressed[i], __justPressed[i], __justReleased[i]); PlayState.instance.gameAndCharsCall("onPostInputUpdate"); } From 64ffc118734c79881e0bf7d3946c7a4fa2d1c416 Mon Sep 17 00:00:00 2001 From: HEIHUAa <112499486+HEIHUAa@users.noreply.github.com> Date: Wed, 22 Apr 2026 20:03:09 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Note.hx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/funkin/game/Note.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/funkin/game/Note.hx b/source/funkin/game/Note.hx index e3d88625ab..fd2eb3c380 100644 --- a/source/funkin/game/Note.hx +++ b/source/funkin/game/Note.hx @@ -77,8 +77,9 @@ class Note extends FlxSprite public var strumID(get, never):Int; private function get_strumID() { - var id = noteData % strumLine.members.length; + var id = noteData; if (id < 0) id = 0; + else if (id >= strumLine.members.length) id = noteData % strumLine.members.length; return id; } From 9541d10799ea570b19de9493f085da68892a75b1 Mon Sep 17 00:00:00 2001 From: Ralty <78720179+Raltyro@users.noreply.github.com> Date: Sat, 1 Aug 2026 11:09:40 +0700 Subject: [PATCH 3/5] Update StrumLine.hx --- source/funkin/game/StrumLine.hx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/funkin/game/StrumLine.hx b/source/funkin/game/StrumLine.hx index 4640f63541..74efedc4e6 100644 --- a/source/funkin/game/StrumLine.hx +++ b/source/funkin/game/StrumLine.hx @@ -343,8 +343,7 @@ class StrumLine extends FlxTypedGroup { notes.forEachAlive(__inputProcessPressed); } - for (i => str in members) - str.updatePlayerInput(__pressed[i], __justPressed[i], __justReleased[i]); + for (s in members) s.updatePlayerInput(__pressed[s.ID], __justPressed[s.ID], __justReleased[s.ID]); PlayState.instance.gameAndCharsEvent("onPostInputUpdate", event); } From 397582ffd45cc4117384f68a2c6d1766810cbebc Mon Sep 17 00:00:00 2001 From: Ralty <78720179+Raltyro@users.noreply.github.com> Date: Sat, 1 Aug 2026 11:10:46 +0700 Subject: [PATCH 4/5] Update Note.hx --- source/funkin/game/Note.hx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/funkin/game/Note.hx b/source/funkin/game/Note.hx index 806181cff4..085a938db2 100644 --- a/source/funkin/game/Note.hx +++ b/source/funkin/game/Note.hx @@ -77,10 +77,7 @@ class Note extends FlxSprite public var strumID(get, never):Int; private function get_strumID() { - var id = noteData; - if (id < 0) id = 0; - else if (id >= strumLine.members.length) id = noteData % strumLine.members.length; - return id; + return if (noteData < 0) 0; else noteData % strumLine.members.length; } public var sustainLength:Float = 0; From 978bbe1468a937281456bd8c1f8a074644bf9c75 Mon Sep 17 00:00:00 2001 From: Ralty <78720179+Raltyro@users.noreply.github.com> Date: Sat, 1 Aug 2026 11:11:59 +0700 Subject: [PATCH 5/5] im a dumbass --- source/funkin/game/StrumLine.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/game/StrumLine.hx b/source/funkin/game/StrumLine.hx index 74efedc4e6..5df36f2788 100644 --- a/source/funkin/game/StrumLine.hx +++ b/source/funkin/game/StrumLine.hx @@ -343,7 +343,7 @@ class StrumLine extends FlxTypedGroup { notes.forEachAlive(__inputProcessPressed); } - for (s in members) s.updatePlayerInput(__pressed[s.ID], __justPressed[s.ID], __justReleased[s.ID]); + for (i => s in members) s.updatePlayerInput(__pressed[i], __justPressed[i], __justReleased[i]); PlayState.instance.gameAndCharsEvent("onPostInputUpdate", event); }