Skip to content

Commit

Permalink
Fix bf changing twice on enter
Browse files Browse the repository at this point in the history
  • Loading branch information
gamerbross authored and ninjamuffin99 committed Sep 30, 2024
1 parent 9324359 commit 30a9887
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions source/funkin/ui/charSelect/CharSelectSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -790,9 +790,7 @@ class CharSelectSubState extends MusicBeatSubState
cursorY = -1;
}

if (autoFollow
&& availableChars.exists(getCurrentSelected())
&& Save.instance.charactersSeen.contains(availableChars[getCurrentSelected()]))
if (availableChars.exists(getCurrentSelected()) && Save.instance.charactersSeen.contains(availableChars[getCurrentSelected()]))
{
curChar = availableChars.get(getCurrentSelected());

Expand Down Expand Up @@ -846,7 +844,7 @@ class CharSelectSubState extends MusicBeatSubState
selectTimer.cancel();
}
}
else if (autoFollow)
else
{
curChar = "locked";

Expand Down

0 comments on commit 30a9887

Please sign in to comment.