diff --git a/source/funkin/game/Note.hx b/source/funkin/game/Note.hx index e3d88625a..fd2eb3c38 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; } diff --git a/source/funkin/game/StrumLine.hx b/source/funkin/game/StrumLine.hx index 9c00acd08..783c6be55 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"); }