File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,8 +81,7 @@ class WeekData {
8181 var directories : Array <String >;
8282 var originalLength : Int ;
8383 #if MODS_ALLOWED
84- directories = [Paths .mods ()];
85- if (Mods .parseList ().enabled .length == 0 ) directories .push (Paths .getSharedPath ());
84+ directories = [Paths .mods (), Paths .getSharedPath ()];
8685 originalLength = directories .length ;
8786 for (mod in Mods .parseList ().enabled ) directories .push (Paths .mods (' $mod /' ));
8887 #else
Original file line number Diff line number Diff line change @@ -37,11 +37,12 @@ class AfterImage extends #if (flixel < version("5.7.0")) FlxTypedGroup<FlxSprite
3737
3838 if (target == null || ! target .exists ) return ;
3939
40- _timer + = elapsed ;
41-
42- if (_timer >= delay && enabled ) {
43- _timer = 0 ;
44- spawnAfterimage ();
40+ if (enabled ) {
41+ _timer + = elapsed ;
42+ if (_timer >= delay ) {
43+ _timer = 0 ;
44+ spawnAfterimage ();
45+ }
4546 }
4647
4748 // update fade
Original file line number Diff line number Diff line change @@ -3959,7 +3959,7 @@ class ChartingState extends MusicBeatState implements PsychUIEventHandler.PsychU
39593959 setSongPlaying (false );
39603960 updateChartData ();
39613961 StageData .loadDirectory (PlayState .SONG );
3962- PlayState .instance .unloadNotes ();
3962+ PlayState .instance ? .unloadNotes ();
39633963 LoadingState .loadAndSwitchState (() -> new PlayState ());
39643964 Controls .toggleVolumeKeys ();
39653965 }
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ class GameOverSubstate extends MusicBeatSubstate {
187187 FlxTimer .wait ((snd .length / 1000 ) - .7 , () -> {
188188 MusicBeatState .skipNextTransIn = true ;
189189
190- PlayState .instance .unloadNotes ();
190+ PlayState .instance ? .unloadNotes ();
191191 FlxG .resetState ();
192192 });
193193 });
You can’t perform that action at this time.
0 commit comments