Skip to content

Commit 52ca3df

Browse files
committed
Merge branch 'AP-CustomEx' of https://github.com/Z11Coding/Mixtape-Engine-Rework into AP-CustomEx
2 parents b233b24 + 910655c commit 52ca3df

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/states/freeplay/FreeplayState.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ class FreeplayState extends MusicBeatState
848848
return;
849849
}
850850

851-
if (APFreeplayManager.trueMissing.contains(fpManager.songList[curSelected].songName) && !APFreeplayManager.unplayedList.contains(fpManager.songList[curSelected].songName)) {
851+
if (APFreeplayManager.trueMissing.contains({song: fpManager.songList[curSelected].songName, mod: fpManager.songList[curSelected].folder}) && !APFreeplayManager.unplayedList.contains({song: fpManager.songList[curSelected].songName, mod: fpManager.songList[curSelected].folder})) {
852852
trace('Song is locked!');
853853
FlxG.camera.shake(0.005, 0.5);
854854
FlxG.sound.play(Paths.sound("badnoise"+FlxG.random.int(1,3)), 1);

source/states/freeplay/OsuFreeplayState.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ class OsuFreeplayState extends MusicBeatState
441441
return;
442442
}
443443

444-
if (APFreeplayManager.trueMissing.contains(fpManager.songList[curSelected].songName) && !APFreeplayManager.unplayedList.contains(fpManager.songList[curSelected].songName)) {
444+
if (APFreeplayManager.trueMissing.contains({song: fpManager.songList[curSelected].songName, mod: fpManager.songList[curSelected].folder}) && !APFreeplayManager.unplayedList.contains({song: fpManager.songList[curSelected].songName, mod: fpManager.songList[curSelected].folder})) {
445445
FlxG.camera.shake(0.005, 0.5);
446446
FlxG.sound.play(Paths.sound("badnoise"+FlxG.random.int(1,3)), 1);
447447
var ogColor = songBox.members[curSelected].color;
@@ -804,7 +804,7 @@ class OsuFreeplayState extends MusicBeatState
804804
songBox.ID = i + trueInt;
805805
this.songBox.add(songBox);
806806

807-
var isLock:Bool = APEntryState.inArchipelagoMode && CategoryState.loadWeekForce == "all" && isMissing && !APFreeplayManager.unplayedList.contains(songName);
807+
var isLock:Bool = APEntryState.inArchipelagoMode && CategoryState.loadWeekForce == "all" && isMissing && !APFreeplayManager.unplayedList.contains({song: songName, mod: modName});
808808
var icon:HealthIcon = new HealthIcon(isLock ? "lock" : fpManager.songList[i].songCharacter, false);
809809
icon.setPosition(320, 100);
810810
icon.ID = i + trueInt;

0 commit comments

Comments
 (0)