This commit is contained in:
Cameron Taylor 2021-01-20 07:19:48 -05:00
parent 3382e4e974
commit 589378b6bc
2 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,6 @@
# RIGHT NOW THE MODS FOLDER DOES NOT WORK ENTIRELY JUST YET!!!
## THIS IS WORK IN PROGRESS!!!
# QUICK AND DIRTY MOD GUIDE # QUICK AND DIRTY MOD GUIDE
With the 0.2.6 update, I added a bit of a slightly nicer mod support backend. With the 0.2.6 update, I added a bit of a slightly nicer mod support backend.

View file

@ -664,10 +664,13 @@ class ChartingState extends MusicBeatState
function changeNoteSustain(value:Float):Void function changeNoteSustain(value:Float):Void
{ {
if (curSelectedNote[2] != null) if (curSelectedNote != null)
{ {
curSelectedNote[2] += value; if (curSelectedNote[2] != null)
curSelectedNote[2] = Math.max(curSelectedNote[2], 0); {
curSelectedNote[2] += value;
curSelectedNote[2] = Math.max(curSelectedNote[2], 0);
}
} }
updateNoteUI(); updateNoteUI();
@ -796,7 +799,8 @@ class ChartingState extends MusicBeatState
function updateNoteUI():Void function updateNoteUI():Void
{ {
stepperSusLength.value = curSelectedNote[2]; if (curSelectedNote != null)
stepperSusLength.value = curSelectedNote[2];
} }
function updateGrid():Void function updateGrid():Void