aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/client.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-06-25 17:37:29 -0500
committermat <github@matdoes.dev>2022-06-25 17:37:29 -0500
commite8deda5d2e45eb634700614009cbcc5b35949e26 (patch)
treedab321d33c66e20e8b558d9777550a3d27cd4b59 /azalea-client/src/client.rs
parent978880b756aa052226f77c21e8e9de9b40070152 (diff)
downloadazalea-drasl-e8deda5d2e45eb634700614009cbcc5b35949e26.tar.xz
clippo
Diffstat (limited to 'azalea-client/src/client.rs')
-rw-r--r--azalea-client/src/client.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs
index 9b3f7cdf..e2967a10 100644
--- a/azalea-client/src/client.rs
+++ b/azalea-client/src/client.rs
@@ -155,8 +155,8 @@ impl Client {
// we got the GameConnection, so the server is now connected :)
let client = Client {
- game_profile: game_profile.clone(),
- conn: conn.clone(),
+ game_profile,
+ conn,
player: Arc::new(Mutex::new(Player::default())),
dimension: Arc::new(Mutex::new(None)),
};
@@ -167,7 +167,7 @@ impl Client {
// read the error to see where the issue is
// you might be able to just drop the lock or put it in its own scope to fix
tokio::spawn(Self::protocol_loop(client.clone(), tx.clone()));
- tokio::spawn(Self::game_tick_loop(client.clone(), tx.clone()));
+ tokio::spawn(Self::game_tick_loop(client.clone(), tx));
Ok((client, rx))
}