1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00

fix sending brand incorrectly

This commit is contained in:
mat 2023-07-23 22:24:08 -05:00
parent d99ba0da55
commit 15acf13477
3 changed files with 6 additions and 1 deletions

1
Cargo.lock generated
View file

@ -290,6 +290,7 @@ dependencies = [
"async-trait",
"azalea-auth",
"azalea-block",
"azalea-buf",
"azalea-chat",
"azalea-core",
"azalea-crypto",

View file

@ -19,6 +19,7 @@ azalea-chat = { path = "../azalea-chat", version = "0.7.0" }
azalea-core = { path = "../azalea-core", version = "0.7.0" }
azalea-crypto = { path = "../azalea-crypto", version = "0.7.0" }
azalea-physics = { path = "../azalea-physics", version = "0.7.0" }
azalea-buf = { path = "../azalea-buf", version = "0.7.0" }
azalea-protocol = { path = "../azalea-protocol", version = "0.7.0" }
azalea-registry = { path = "../azalea-registry", version = "0.7.0" }
azalea-world = { path = "../azalea-world", version = "0.7.0" }

View file

@ -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(),
);