aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/client.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2024-10-26 05:29:26 +0000
committermat <git@matdoes.dev>2024-10-26 05:29:26 +0000
commit6b0fe5bf638079d535e70c3c91e78fe35a5d2a2f (patch)
tree3b65d2984a0cffbe5acb3d44d7e3b8b145c32f95 /azalea-client/src/client.rs
parentb762575db61cf775d603e11eb2bd27ae13bdc4e9 (diff)
downloadazalea-drasl-6b0fe5bf638079d535e70c3c91e78fe35a5d2a2f.tar.xz
group imports with rustfmt
Diffstat (limited to 'azalea-client/src/client.rs')
-rw-r--r--azalea-client/src/client.rs67
1 files changed, 34 insertions, 33 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs
index 7551aa9f..caeca7fe 100644
--- a/azalea-client/src/client.rs
+++ b/azalea-client/src/client.rs
@@ -1,27 +1,11 @@
-use crate::{
- attack::{self, AttackPlugin},
- chat::ChatPlugin,
- chunks::{ChunkBatchInfo, ChunkPlugin},
- configuration::ConfigurationPlugin,
- disconnect::{DisconnectEvent, DisconnectPlugin},
- events::{Event, EventPlugin, LocalPlayerEvents},
- interact::{CurrentSequenceNumber, InteractPlugin},
- inventory::{Inventory, InventoryPlugin},
- local_player::{
- death_event, GameProfileComponent, Hunger, InstanceHolder, PermissionLevel,
- PlayerAbilities, TabList,
- },
- mining::{self, MinePlugin},
- movement::{LastSentLookDirection, PhysicsState, PlayerMovePlugin},
- packet_handling::{
- login::{self, LoginSendPacketQueue},
- PacketHandlerPlugin,
- },
- player::retroactively_add_game_profile_component,
- raw_connection::RawConnection,
- respawn::RespawnPlugin,
- task_pool::TaskPoolPlugin,
- Account, PlayerInfo,
+use std::{
+ collections::HashMap,
+ fmt::Debug,
+ io,
+ net::SocketAddr,
+ ops::Deref,
+ sync::Arc,
+ time::{Duration, Instant},
};
use azalea_auth::{game_profile::GameProfile, sessionserver::ClientSessionServerError};
@@ -68,15 +52,6 @@ use bevy_ecs::{
use bevy_time::TimePlugin;
use derive_more::Deref;
use parking_lot::{Mutex, RwLock};
-use std::{
- collections::HashMap,
- fmt::Debug,
- io,
- net::SocketAddr,
- ops::Deref,
- sync::Arc,
- time::{Duration, Instant},
-};
use thiserror::Error;
use tokio::{
sync::{broadcast, mpsc},
@@ -85,6 +60,32 @@ use tokio::{
use tracing::{debug, error};
use uuid::Uuid;
+use crate::{
+ attack::{self, AttackPlugin},
+ chat::ChatPlugin,
+ chunks::{ChunkBatchInfo, ChunkPlugin},
+ configuration::ConfigurationPlugin,
+ disconnect::{DisconnectEvent, DisconnectPlugin},
+ events::{Event, EventPlugin, LocalPlayerEvents},
+ interact::{CurrentSequenceNumber, InteractPlugin},
+ inventory::{Inventory, InventoryPlugin},
+ local_player::{
+ death_event, GameProfileComponent, Hunger, InstanceHolder, PermissionLevel,
+ PlayerAbilities, TabList,
+ },
+ mining::{self, MinePlugin},
+ movement::{LastSentLookDirection, PhysicsState, PlayerMovePlugin},
+ packet_handling::{
+ login::{self, LoginSendPacketQueue},
+ PacketHandlerPlugin,
+ },
+ player::retroactively_add_game_profile_component,
+ raw_connection::RawConnection,
+ respawn::RespawnPlugin,
+ task_pool::TaskPoolPlugin,
+ Account, PlayerInfo,
+};
+
/// `Client` has the things that a user interacting with the library will want.
///
/// To make a new client, use either [`azalea::ClientBuilder`] or