mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-07 19:31:37 +01:00
Merge pull request #44 from Nesaak/master
Cache default player provider
This commit is contained in:
commit
cb5a507951
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user