From bc2f3a72881b1197c1d8e6cc122923d780d05e73 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Fri, 24 Aug 2018 21:30:58 -0400 Subject: [PATCH] Clean up ConnectedPlayer initialization. --- .../proxy/connection/client/LoginSessionHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/LoginSessionHandler.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/LoginSessionHandler.java index 754864b7b..9ef98b109 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/LoginSessionHandler.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/LoginSessionHandler.java @@ -164,8 +164,8 @@ public class LoginSessionHandler implements MinecraftSessionHandler { VelocityServer.getServer().getEventManager().fire(profileRequestEvent).thenCompose(profileEvent -> { // Initiate a regular connection and move over to it. - ConnectedPlayer player = new ConnectedPlayer(profileEvent.getGameProfile() == null ? profile : profileEvent.getGameProfile(), - inbound, apiInbound.getVirtualHost().orElse(null)); + ConnectedPlayer player = new ConnectedPlayer(profileEvent.getGameProfile(), inbound, + apiInbound.getVirtualHost().orElse(null)); return VelocityServer.getServer().getEventManager().fire(new PermissionsSetupEvent(player, ConnectedPlayer.DEFAULT_PERMISSIONS)) .thenCompose(event -> {