ServerPlayNetworkHandler connection = player.networkHandler;
if (connection == null) return;
- ClientConnection networkManager = connection.connection;
+ ClientConnection networkManager = connection.client;
if (networkManager.isLocal()) return;
EventBus.publish(new PlayerLoggedIn(new ServerPlayer(player)));