From 15acf1347727b84472e6a8a1c7a4f51cd3163f01 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 23 Jul 2023 22:24:08 -0500 Subject: fix sending brand incorrectly --- azalea-client/src/packet_handling.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'azalea-client/src') 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(), ); -- cgit v1.2.3