Skip to content

Commit 6b32adc

Browse files
fixing
1 parent ae81d99 commit 6b32adc

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎source/data/WeekData.hx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

‎source/effects/AfterImage.hx‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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

‎source/states/editors/ChartingState.hx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

‎source/substates/GameOverSubstate.hx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)