From 42ca37554c987f2bdeda596a18f5d3989c9fc0d7 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 30 Apr 2022 23:11:18 -0500 Subject: actually send the ServerboundCustomPayloadPacket --- azalea-client/src/connect.rs | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'azalea-client') 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(); } -- cgit v1.2.3