Skip to content

Commit e0394d5

Browse files
committed
woops!
1 parent 3bef48d commit e0394d5

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

Modding.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# RIGHT NOW THE MODS FOLDER DOES NOT WORK ENTIRELY JUST YET!!!
2+
## THIS IS WORK IN PROGRESS!!!
3+
14
# QUICK AND DIRTY MOD GUIDE
25

36
With the 0.2.6 update, I added a bit of a slightly nicer mod support backend.

source/ChartingState.hx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -664,10 +664,13 @@ class ChartingState extends MusicBeatState
664664

665665
function changeNoteSustain(value:Float):Void
666666
{
667-
if (curSelectedNote[2] != null)
667+
if (curSelectedNote != null)
668668
{
669-
curSelectedNote[2] += value;
670-
curSelectedNote[2] = Math.max(curSelectedNote[2], 0);
669+
if (curSelectedNote[2] != null)
670+
{
671+
curSelectedNote[2] += value;
672+
curSelectedNote[2] = Math.max(curSelectedNote[2], 0);
673+
}
671674
}
672675

673676
updateNoteUI();
@@ -796,7 +799,8 @@ class ChartingState extends MusicBeatState
796799

797800
function updateNoteUI():Void
798801
{
799-
stepperSusLength.value = curSelectedNote[2];
802+
if (curSelectedNote != null)
803+
stepperSusLength.value = curSelectedNote[2];
800804
}
801805

802806
function updateGrid():Void

0 commit comments

Comments
 (0)