aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xazalea-client/src/account.rs2
-rw-r--r--azalea-client/src/client.rs4
-rw-r--r--azalea-client/src/local_player.rs10
-rw-r--r--azalea-client/src/packet_handling/login.rs4
-rw-r--r--azalea/src/swarm/mod.rs2
5 files changed, 4 insertions, 18 deletions
diff --git a/azalea-client/src/account.rs b/azalea-client/src/account.rs
index 7ef942ed..e43d57e7 100755
--- a/azalea-client/src/account.rs
+++ b/azalea-client/src/account.rs
@@ -233,5 +233,3 @@ impl Account {
Ok(())
}
}
-
-fn uuid_from_username() {}
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs
index 16d9442b..8757bc39 100644
--- a/azalea-client/src/client.rs
+++ b/azalea-client/src/client.rs
@@ -59,9 +59,7 @@ use azalea_protocol::{
resolver, ServerAddress,
};
use azalea_world::{Instance, InstanceContainer, InstanceName, PartialInstance};
-use bevy_app::{
- App, FixedUpdate, Plugin, PluginGroup, PluginGroupBuilder, PreStartup, Startup, Update,
-};
+use bevy_app::{App, FixedUpdate, Plugin, PluginGroup, PluginGroupBuilder, Update};
use bevy_ecs::{
bundle::Bundle,
component::Component,
diff --git a/azalea-client/src/local_player.rs b/azalea-client/src/local_player.rs
index cf1f7475..3b3ae89b 100644
--- a/azalea-client/src/local_player.rs
+++ b/azalea-client/src/local_player.rs
@@ -3,14 +3,9 @@ use std::{collections::HashMap, io, sync::Arc};
use azalea_auth::game_profile::GameProfile;
use azalea_core::game_type::GameMode;
use azalea_entity::Dead;
-use azalea_protocol::packets::game::{
- clientbound_player_abilities_packet::ClientboundPlayerAbilitiesPacket, ServerboundGamePacket,
-};
+use azalea_protocol::packets::game::clientbound_player_abilities_packet::ClientboundPlayerAbilitiesPacket;
use azalea_world::{Instance, PartialInstance};
-use bevy_ecs::{
- component::Component, entity::Entity, event::EventReader, prelude::*, query::Added,
- system::Query,
-};
+use bevy_ecs::{component::Component, entity::Entity, prelude::*, query::Added, system::Query};
use derive_more::{Deref, DerefMut};
use parking_lot::RwLock;
use thiserror::Error;
@@ -20,7 +15,6 @@ use uuid::Uuid;
use crate::{
events::{Event as AzaleaEvent, LocalPlayerEvents},
- raw_connection::RawConnection,
ClientInformation, PlayerInfo,
};
diff --git a/azalea-client/src/packet_handling/login.rs b/azalea-client/src/packet_handling/login.rs
index 83a6a98d..472ac850 100644
--- a/azalea-client/src/packet_handling/login.rs
+++ b/azalea-client/src/packet_handling/login.rs
@@ -8,10 +8,6 @@ use bevy_ecs::prelude::*;
use tokio::sync::mpsc;
use tracing::error;
-use crate::raw_connection::RawConnection;
-
-use super::game::SendPacketEvent;
-
// this struct is defined here anyways though so it's consistent with the other
// ones
diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs
index 5d1a73df..41a54fdd 100644
--- a/azalea/src/swarm/mod.rs
+++ b/azalea/src/swarm/mod.rs
@@ -536,7 +536,7 @@ impl Swarm {
state: S,
) -> Result<Client, JoinError> {
let address = self.address.read().clone();
- let resolved_address = self.resolved_address.read().clone();
+ let resolved_address = *self.resolved_address.read();
let (bot, mut rx) = Client::start_client(
self.ecs_lock.clone(),