diff options
| author | mat <git@matdoes.dev> | 2024-01-04 01:55:00 -0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-01-04 01:55:00 -0600 |
| commit | 1347f3549282397be6a46b8b7cb76a7900d0690a (patch) | |
| tree | d3d468db0c9947f2914b6d0d71dc299c1b3e2634 /azalea-core/src | |
| parent | 13e6421cf5aeeddc035f42141da776d09d177e33 (diff) | |
| download | azalea-drasl-1347f3549282397be6a46b8b7cb76a7900d0690a.tar.xz | |
rename open_container to open_container_at and add get_open_container
Diffstat (limited to 'azalea-core/src')
| -rw-r--r-- | azalea-core/src/game_type.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-core/src/game_type.rs b/azalea-core/src/game_type.rs index 99f0c0fe..7c7a43a8 100644 --- a/azalea-core/src/game_type.rs +++ b/azalea-core/src/game_type.rs @@ -1,6 +1,6 @@ use azalea_buf::{BufReadError, McBufReadable, McBufVarReadable, McBufWritable}; use std::io::{Cursor, Write}; -use tracing::warn; +use tracing::debug; /// A Minecraft gamemode, like survival or creative. #[derive(Hash, Copy, Clone, Debug, Default, Eq, PartialEq)] @@ -96,11 +96,11 @@ impl McBufReadable for GameMode { fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError> { let id = u32::var_read_from(buf)?; let id = id.try_into().unwrap_or_else(|_| { - warn!("Unknown game mode id {id}, defaulting to survival"); + debug!("Unknown game mode id {id}, defaulting to survival"); 0 }); Ok(GameMode::from_id(id).unwrap_or_else(|| { - warn!("Unknown game mode id {id}, defaulting to survival"); + debug!("Unknown game mode id {id}, defaulting to survival"); GameMode::Survival })) } |
