1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2025-12-19 14:59:20 +00:00

Fixed recession in latest commit

This commit is contained in:
Tim203
2024-05-18 17:43:33 +02:00
parent 00b8b1b636
commit f1c52b48fc

View File

@@ -156,6 +156,7 @@ public final class VelocityListener {
public void onGameProfileRequest(GameProfileRequestEvent event, Continuation continuation) { public void onGameProfileRequest(GameProfileRequestEvent event, Continuation continuation) {
FloodgatePlayer player = playerCache.getIfPresent(event.getConnection()); FloodgatePlayer player = playerCache.getIfPresent(event.getConnection());
if (player == null) { if (player == null) {
continuation.resume();
return; return;
} }
playerCache.invalidate(event.getConnection()); playerCache.invalidate(event.getConnection());
@@ -167,6 +168,7 @@ public final class VelocityListener {
player.getCorrectUsername(), player.getCorrectUsername(),
List.of(DEFAULT_TEXTURE_PROPERTY) List.of(DEFAULT_TEXTURE_PROPERTY)
)); ));
continuation.resume();
return; return;
} }