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:
parent
d99ba0da55
commit
15acf13477
3 changed files with 6 additions and 1 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -290,6 +290,7 @@ dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"azalea-auth",
|
"azalea-auth",
|
||||||
"azalea-block",
|
"azalea-block",
|
||||||
|
"azalea-buf",
|
||||||
"azalea-chat",
|
"azalea-chat",
|
||||||
"azalea-core",
|
"azalea-core",
|
||||||
"azalea-crypto",
|
"azalea-crypto",
|
||||||
|
|
|
@ -19,6 +19,7 @@ azalea-chat = { path = "../azalea-chat", version = "0.7.0" }
|
||||||
azalea-core = { path = "../azalea-core", version = "0.7.0" }
|
azalea-core = { path = "../azalea-core", version = "0.7.0" }
|
||||||
azalea-crypto = { path = "../azalea-crypto", version = "0.7.0" }
|
azalea-crypto = { path = "../azalea-crypto", version = "0.7.0" }
|
||||||
azalea-physics = { path = "../azalea-physics", 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-protocol = { path = "../azalea-protocol", version = "0.7.0" }
|
||||||
azalea-registry = { path = "../azalea-registry", version = "0.7.0" }
|
azalea-registry = { path = "../azalea-registry", version = "0.7.0" }
|
||||||
azalea-world = { path = "../azalea-world", version = "0.7.0" }
|
azalea-world = { path = "../azalea-world", version = "0.7.0" }
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
use std::{collections::HashSet, io::Cursor, sync::Arc};
|
use std::{collections::HashSet, io::Cursor, sync::Arc};
|
||||||
|
|
||||||
|
use azalea_buf::McBufWritable;
|
||||||
use azalea_core::{ChunkPos, GameMode, ResourceLocation, Vec3};
|
use azalea_core::{ChunkPos, GameMode, ResourceLocation, Vec3};
|
||||||
use azalea_entity::{
|
use azalea_entity::{
|
||||||
indexing::EntityUuidIndex,
|
indexing::EntityUuidIndex,
|
||||||
|
@ -289,11 +290,13 @@ fn process_packet_events(ecs: &mut World) {
|
||||||
local_player.write_packet(client_information.clone().get());
|
local_player.write_packet(client_information.clone().get());
|
||||||
|
|
||||||
// brand
|
// brand
|
||||||
|
let mut brand_data = Vec::new();
|
||||||
|
"vanilla".to_string().write_into(&mut brand_data).unwrap();
|
||||||
local_player.write_packet(
|
local_player.write_packet(
|
||||||
ServerboundCustomPayloadPacket {
|
ServerboundCustomPayloadPacket {
|
||||||
identifier: ResourceLocation::new("brand"),
|
identifier: ResourceLocation::new("brand"),
|
||||||
// they don't have to know :)
|
// they don't have to know :)
|
||||||
data: "vanilla".into(),
|
data: brand_data.into(),
|
||||||
}
|
}
|
||||||
.get(),
|
.get(),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue