diff options
| author | mat <git@matdoes.dev> | 2023-07-23 22:24:08 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-07-23 22:24:08 -0500 |
| commit | 15acf1347727b84472e6a8a1c7a4f51cd3163f01 (patch) | |
| tree | 46242cbf4eecd59e3d718bc8c5ac96be90aeec81 /azalea-client/src | |
| parent | d99ba0da5500a1a4917bf9c8c9e93e2caa4ada99 (diff) | |
| download | azalea-drasl-15acf1347727b84472e6a8a1c7a4f51cd3163f01.tar.xz | |
fix sending brand incorrectly
Diffstat (limited to 'azalea-client/src')
| -rw-r--r-- | azalea-client/src/packet_handling.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/azalea-client/src/packet_handling.rs b/azalea-client/src/packet_handling.rs index d72a06b2..bf438de0 100644 --- a/azalea-client/src/packet_handling.rs +++ b/azalea-client/src/packet_handling.rs @@ -1,5 +1,6 @@ use std::{collections::HashSet, io::Cursor, sync::Arc}; +use azalea_buf::McBufWritable; use azalea_core::{ChunkPos, GameMode, ResourceLocation, Vec3}; use azalea_entity::{ indexing::EntityUuidIndex, @@ -289,11 +290,13 @@ fn process_packet_events(ecs: &mut World) { local_player.write_packet(client_information.clone().get()); // brand + let mut brand_data = Vec::new(); + "vanilla".to_string().write_into(&mut brand_data).unwrap(); local_player.write_packet( ServerboundCustomPayloadPacket { identifier: ResourceLocation::new("brand"), // they don't have to know :) - data: "vanilla".into(), + data: brand_data.into(), } .get(), ); |
