aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-04-30 23:11:18 -0500
committermat <github@matdoes.dev>2022-04-30 23:11:18 -0500
commit42ca37554c987f2bdeda596a18f5d3989c9fc0d7 (patch)
treeb96bdeced0127148354b97afc479354982882397 /azalea-client/src
parent8313952541c049615af944b87b80c686bbf62073 (diff)
downloadazalea-drasl-42ca37554c987f2bdeda596a18f5d3989c9fc0d7.tar.xz
actually send the ServerboundCustomPayloadPacket
Diffstat (limited to 'azalea-client/src')
-rwxr-xr-xazalea-client/src/connect.rs19
1 files changed, 11 insertions, 8 deletions
diff --git a/azalea-client/src/connect.rs b/azalea-client/src/connect.rs
index 2a5066c6..3a4dfe79 100755
--- a/azalea-client/src/connect.rs
+++ b/azalea-client/src/connect.rs
@@ -167,14 +167,17 @@ impl Client {
println!("Got login packet {:?}", p);
state.lock().await.player.entity.id = p.player_id;
- conn.lock().await.write(
- ServerboundCustomPayloadPacket {
- identifier: ResourceLocation::new("brand").unwrap(),
- // they don't have to know :)
- data: "vanilla".into(),
- }
- .get(),
- );
+ conn.lock()
+ .await
+ .write(
+ ServerboundCustomPayloadPacket {
+ identifier: ResourceLocation::new("brand").unwrap(),
+ // they don't have to know :)
+ data: "vanilla".into(),
+ }
+ .get(),
+ )
+ .await;
tx.send(Event::Login).unwrap();
}