From aa2039c86888e8ef47072fde63634ec58b22a654 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 20 Mar 2025 03:35:59 +0000 Subject: upgrade deps and slightly improve docs --- azalea-client/src/plugins/events.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'azalea-client/src/plugins') diff --git a/azalea-client/src/plugins/events.rs b/azalea-client/src/plugins/events.rs index 011fbc4a..32e393da 100644 --- a/azalea-client/src/plugins/events.rs +++ b/azalea-client/src/plugins/events.rs @@ -60,6 +60,7 @@ use crate::{ /// Note: Events are sent before they're processed, so for example game ticks /// happen at the beginning of a tick before anything has happened. #[derive(Debug, Clone)] +#[non_exhaustive] pub enum Event { /// Happens right after the bot switches into the Game state, but before /// it's actually spawned. This can be useful for setting the client @@ -72,8 +73,8 @@ pub enum Event { /// Fired when we receive a login packet, which is after [`Event::Init`] but /// before [`Event::Spawn`]. You usually want [`Event::Spawn`] instead. /// - /// Your position will be [`Vec3::ZERO`] immediately after you receive this - /// packet, but it'll be ready by the time you get [`Event::Spawn`]. + /// Your position may be [`Vec3::ZERO`] immediately after you receive this + /// event, but it'll be ready by the time you get [`Event::Spawn`]. /// /// [`Vec3::ZERO`]: azalea_core::position::Vec3::ZERO Login, -- cgit v1.2.3