diff options
| author | Ubuntu <github@matdoes.dev> | 2022-09-19 19:53:16 +0000 |
|---|---|---|
| committer | Ubuntu <github@matdoes.dev> | 2022-09-19 19:53:16 +0000 |
| commit | 14a6f9d9f89452b56102ffc5dc61125cc2b63aff (patch) | |
| tree | e73c03bb327422142dc27c3b163f49d44f948d0e /azalea-protocol/src/packets | |
| parent | 4247945df13507fb07a4746263bb702d6fbe04cd (diff) | |
| download | azalea-drasl-14a6f9d9f89452b56102ffc5dc61125cc2b63aff.tar.xz | |
replace printlns with log
Diffstat (limited to 'azalea-protocol/src/packets')
| -rw-r--r-- | azalea-protocol/src/packets/game/clientbound_commands_packet.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_commands_packet.rs b/azalea-protocol/src/packets/game/clientbound_commands_packet.rs index c05f710a..e18cf52b 100644 --- a/azalea-protocol/src/packets/game/clientbound_commands_packet.rs +++ b/azalea-protocol/src/packets/game/clientbound_commands_packet.rs @@ -4,6 +4,7 @@ use azalea_buf::McBufVarReadable; use azalea_buf::{McBufReadable, McBufWritable}; use azalea_core::ResourceLocation; use azalea_protocol_macros::ClientboundGamePacket; +use log::warn; use std::io::{Read, Write}; #[derive(Clone, Debug, McBuf, ClientboundGamePacket)] @@ -205,7 +206,7 @@ impl McBufReadable for BrigadierNodeStub { fn read_from(buf: &mut impl Read) -> Result<Self, BufReadError> { let flags = u8::read_from(buf)?; if flags > 31 { - eprintln!( + warn!( "Warning: The flags from a Brigadier node are over 31 ({flags}; {flags:#b}). This is probably a bug.", ); } |
