fix editor rq

This commit is contained in:
KadeDeveloper 2021-07-19 21:48:16 -07:00
parent 8ed09b1929
commit fd182641e8

View File

@ -1163,13 +1163,16 @@ class ChartingState extends MusicBeatState
var sect = lastUpdatedSection; var sect = lastUpdatedSection;
if (sect != null) if (sect == null)
return; return;
for (i in 0...sect.sectionNotes.length) for (i in 0...sect.sectionNotes.length)
{ {
var note = sect.sectionNotes[i]; 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; sect.sectionNotes[i] = note;
updateGrid(); updateGrid();
} }
@ -1179,7 +1182,7 @@ class ChartingState extends MusicBeatState
trace(sect); trace(sect);
if (sect != null) if (sect == null)
return; return;
sect.mustHitSection = check_mustHitSection.checked; sect.mustHitSection = check_mustHitSection.checked;