diff --git a/source/funkin/game/Note.hx b/source/funkin/game/Note.hx index aafe9f2dc..085a938db 100644 --- a/source/funkin/game/Note.hx +++ b/source/funkin/game/Note.hx @@ -77,9 +77,7 @@ class Note extends FlxSprite public var strumID(get, never):Int; private function get_strumID() { - var id = noteData % strumLine.members.length; - if (id < 0) id = 0; - return id; + return if (noteData < 0) 0; else noteData % strumLine.members.length; } public var sustainLength:Float = 0; diff --git a/source/funkin/game/StrumLine.hx b/source/funkin/game/StrumLine.hx index 8cba4fdee..5df36f278 100644 --- a/source/funkin/game/StrumLine.hx +++ b/source/funkin/game/StrumLine.hx @@ -343,9 +343,7 @@ class StrumLine extends FlxTypedGroup { notes.forEachAlive(__inputProcessPressed); } - forEach(function(str:Strum) { - str.updatePlayerInput(__pressed[str.ID], __justPressed[str.ID], __justReleased[str.ID]); - }); + for (i => s in members) s.updatePlayerInput(__pressed[i], __justPressed[i], __justReleased[i]); PlayState.instance.gameAndCharsEvent("onPostInputUpdate", event); }