aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/client.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-12-16 05:41:25 -0500
committermat <git@matdoes.dev>2025-12-16 05:41:25 -0500
commit188428950722ccaa9b163c12fca92133f18316ba (patch)
tree05143223204ef026ee672092f2ebbb3c17cea0d1 /azalea-client/src/client.rs
parent281a810c860a67e8e7957aaec876ea608602831c (diff)
downloadazalea-drasl-188428950722ccaa9b163c12fca92133f18316ba.tar.xz
implement cookie packets to fix betteranticheat support
Diffstat (limited to 'azalea-client/src/client.rs')
-rw-r--r--azalea-client/src/client.rs4
1 files changed, 4 insertions, 0 deletions
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,