diff --git a/src/main/java/net/minestom/server/network/ConnectionManager.java b/src/main/java/net/minestom/server/network/ConnectionManager.java index 08e3e044f..718a8aaf5 100644 --- a/src/main/java/net/minestom/server/network/ConnectionManager.java +++ b/src/main/java/net/minestom/server/network/ConnectionManager.java @@ -210,9 +210,7 @@ public final class ConnectionManager { * @return the current {@link PlayerProvider} */ public PlayerProvider getPlayerProvider() { - return playerProvider == null ? - (uuid, username, connection) -> new Player(uuid, username, connection) : - playerProvider; + return playerProvider == null ? playerProvider = Player::new : playerProvider; } /**