aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2026-01-06 06:34:19 -0500
committermat <git@matdoes.dev>2026-01-06 06:34:19 -0500
commitfdbcfaab4813da928f9f27e119d4951088c3a853 (patch)
tree19f33692f882ada386f8b6aea1e1a195a905e286 /azalea-client/src
parent9c2c7c3497a74e80d7186fdcd97ce2518520faa6 (diff)
downloadazalea-drasl-fdbcfaab4813da928f9f27e119d4951088c3a853.tar.xz
add a few more convenience functions and update some docs
Diffstat (limited to 'azalea-client/src')
-rw-r--r--azalea-client/src/local_player.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-client/src/local_player.rs b/azalea-client/src/local_player.rs
index cc2a28dc..9e44913c 100644
--- a/azalea-client/src/local_player.rs
+++ b/azalea-client/src/local_player.rs
@@ -73,7 +73,7 @@ pub struct PermissionLevel(pub u8);
#[derive(Clone, Component, Debug, Default, Deref, DerefMut, Resource)]
pub struct TabList(HashMap<Uuid, PlayerInfo>);
-#[derive(Clone, Component)]
+#[derive(Clone, Component, Debug)]
pub struct Hunger {
/// The main hunger bar. This is typically in the range `0..=20`.
pub food: u32,
@@ -81,7 +81,7 @@ pub struct Hunger {
///
/// This isn't displayed in the vanilla Minecraft GUI, but it's used
/// internally by the game. It's a decrementing counter, and the player's
- /// [`Hunger::food`] only starts decreasing when this reaches 0.
+ /// [`Hunger::food`] only starts decreasing when their saturation reaches 0.
pub saturation: f32,
}