From 589378b6bc9415d90445d10fa65c25918c3c4d1c Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Wed, 20 Jan 2021 07:19:48 -0500 Subject: [PATCH] woops! --- Modding.md | 3 +++ source/ChartingState.hx | 12 ++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Modding.md b/Modding.md index aed0e778a..4b52fd8c5 100644 --- a/Modding.md +++ b/Modding.md @@ -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 With the 0.2.6 update, I added a bit of a slightly nicer mod support backend. diff --git a/source/ChartingState.hx b/source/ChartingState.hx index 75fc9e254..63e19ab69 100644 --- a/source/ChartingState.hx +++ b/source/ChartingState.hx @@ -664,10 +664,13 @@ class ChartingState extends MusicBeatState function changeNoteSustain(value:Float):Void { - if (curSelectedNote[2] != null) + if (curSelectedNote != null) { - curSelectedNote[2] += value; - curSelectedNote[2] = Math.max(curSelectedNote[2], 0); + if (curSelectedNote[2] != null) + { + curSelectedNote[2] += value; + curSelectedNote[2] = Math.max(curSelectedNote[2], 0); + } } updateNoteUI(); @@ -796,7 +799,8 @@ class ChartingState extends MusicBeatState function updateNoteUI():Void { - stepperSusLength.value = curSelectedNote[2]; + if (curSelectedNote != null) + stepperSusLength.value = curSelectedNote[2]; } function updateGrid():Void