From fd182641e8ff66c85269222b91ff12713cf50d66 Mon Sep 17 00:00:00 2001 From: KadeDeveloper Date: Mon, 19 Jul 2021 21:48:16 -0700 Subject: [PATCH] fix editor rq --- source/ChartingState.hx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/ChartingState.hx b/source/ChartingState.hx index db20a29..825001f 100644 --- a/source/ChartingState.hx +++ b/source/ChartingState.hx @@ -1163,13 +1163,16 @@ class ChartingState extends MusicBeatState var sect = lastUpdatedSection; - if (sect != null) + if (sect == null) return; for (i in 0...sect.sectionNotes.length) { var note = sect.sectionNotes[i]; - note[1] = (note[1] + 4) % 8; + if (note[1] < 4) + note[1] += 4; + else + note[1] -= 4; sect.sectionNotes[i] = note; updateGrid(); } @@ -1179,7 +1182,7 @@ class ChartingState extends MusicBeatState trace(sect); - if (sect != null) + if (sect == null) return; sect.mustHitSection = check_mustHitSection.checked;