Improve Javadoc and the GameProfileRequestEvent.

This commit is contained in:
Andrew Steinborn
2018-08-24 21:09:56 -04:00
parent a3c4522ca0
commit afb6e69388
4 changed files with 57 additions and 12 deletions

View File

@@ -160,8 +160,7 @@ public class LoginSessionHandler implements MinecraftSessionHandler {
}
private void initializePlayer(GameProfile profile, boolean onlineMode) {
GameProfileRequestEvent profileRequestEvent = new GameProfileRequestEvent(profile, onlineMode);
GameProfileRequestEvent profileRequestEvent = new GameProfileRequestEvent(apiInbound, profile, onlineMode);
VelocityServer.getServer().getEventManager().fire(profileRequestEvent).thenCompose(profileEvent -> {
// Initiate a regular connection and move over to it.