From 49eff01afd8e3b85f214929ae4cc28aff84f58d1 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Mon, 16 Jun 2025 21:08:49 -0400 Subject: [PATCH] Fixed locked characters not showing up properly when selected --- .vscode/settings.json | 4 ++++ source/funkin/ui/charSelect/CharSelectSubState.hx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 14bf5d11e..80ad09b21 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -203,6 +203,10 @@ "label": "Debug", "args": ["-debug", "-DFEATURE_DEBUG_FUNCTIONS"] }, + { + "label": "Debug (Unlock Everything)", + "args": ["-debug", "-DUNLOCK_EVERYTHING"] + }, { "label": "Debug (Tracy)", "args": ["-debug", "-DFEATURE_DEBUG_TRACY", "-DFEATURE_DEBUG_FUNCTIONS"] diff --git a/source/funkin/ui/charSelect/CharSelectSubState.hx b/source/funkin/ui/charSelect/CharSelectSubState.hx index 2b2a73525..201fb9470 100644 --- a/source/funkin/ui/charSelect/CharSelectSubState.hx +++ b/source/funkin/ui/charSelect/CharSelectSubState.hx @@ -905,7 +905,7 @@ class CharSelectSubState extends MusicBeatSubState cursorY = -1; } - if (availableChars.exists(getCurrentSelected()) && Save.instance.charactersSeen.contains(availableChars[getCurrentSelected()])) + if (availableChars.exists(getCurrentSelected()) && PlayerRegistry.instance.isCharacterSeen(availableChars[getCurrentSelected()])) { curChar = availableChars.get(getCurrentSelected());