From 188428950722ccaa9b163c12fca92133f18316ba Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 16 Dec 2025 05:41:25 -0500 Subject: implement cookie packets to fix betteranticheat support --- azalea-client/src/client.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'azalea-client/src/client.rs') diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs index 598c9ed4..0b6de086 100644 --- a/azalea-client/src/client.rs +++ b/azalea-client/src/client.rs @@ -52,6 +52,7 @@ use crate::{ block_update::QueuedServerBlockUpdates, chunks::ChunkBatchInfo, connection::RawConnection, + cookies::ServerCookies, disconnect::DisconnectEvent, events::Event, interact::BlockStatePredictionHandler, @@ -537,6 +538,8 @@ pub struct LocalPlayerBundle { /// A bundle for the components that are present on a local player that is /// currently in the `game` protocol state. /// +/// All of these components are also removed when the client disconnects. +/// /// If you want to filter for this, use [`InGameState`]. #[derive(Bundle, Default)] pub struct JoinedClientBundle { @@ -551,6 +554,7 @@ pub struct JoinedClientBundle { pub permission_level: PermissionLevel, pub chunk_batch_info: ChunkBatchInfo, pub hunger: Hunger, + pub cookies: ServerCookies, pub entity_id_index: EntityIdIndex, -- cgit v1.2.3