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