diff options
| author | mat <github@matdoes.dev> | 2022-04-30 23:11:18 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-04-30 23:11:18 -0500 |
| commit | 42ca37554c987f2bdeda596a18f5d3989c9fc0d7 (patch) | |
| tree | b96bdeced0127148354b97afc479354982882397 /azalea-client/src | |
| parent | 8313952541c049615af944b87b80c686bbf62073 (diff) | |
| download | azalea-drasl-42ca37554c987f2bdeda596a18f5d3989c9fc0d7.tar.xz | |
actually send the ServerboundCustomPayloadPacket
Diffstat (limited to 'azalea-client/src')
| -rwxr-xr-x | azalea-client/src/connect.rs | 19 |
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(); } |
