Skip to content

Commit

Permalink
Fixed recession in latest commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim203 committed May 18, 2024
1 parent 00b8b1b commit f1c52b4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ public void onPreLogin(PreLoginEvent event) {
public void onGameProfileRequest(GameProfileRequestEvent event, Continuation continuation) {
FloodgatePlayer player = playerCache.getIfPresent(event.getConnection());
if (player == null) {
continuation.resume();
return;
}
playerCache.invalidate(event.getConnection());
Expand All @@ -167,6 +168,7 @@ public void onGameProfileRequest(GameProfileRequestEvent event, Continuation con
player.getCorrectUsername(),
List.of(DEFAULT_TEXTURE_PROPERTY)
));
continuation.resume();
return;
}

Expand Down

0 comments on commit f1c52b4

Please sign in to comment.