From 6d59fa0bf835fce8dbfb80e92f9fdadaa931f57e Mon Sep 17 00:00:00 2001 From: CuckyDev Date: Mon, 12 Jul 2021 02:01:43 -0400 Subject: [PATCH] Fix single ends --- source/Note.hx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/source/Note.hx b/source/Note.hx index 04889d8..d591bbe 100644 --- a/source/Note.hx +++ b/source/Note.hx @@ -185,14 +185,6 @@ class Note extends FlxSprite x += width / 2; - switch (noteTypeCheck) - { - case 'pixel': - noteYOff = -13; - default: - noteYOff = -23; - } - originColor = prevNote.originColor; animation.play(dataColor[originColor] + 'holdend'); // This works both for normal colors and quantization colors @@ -215,6 +207,14 @@ class Note extends FlxSprite prevNote.updateHitbox(); // prevNote.setGraphicSize(); + + switch (noteTypeCheck) + { + case 'pixel': + noteYOff = -13; + default: + noteYOff = -23; + } } } }