From 14a6f9d9f89452b56102ffc5dc61125cc2b63aff Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Mon, 19 Sep 2022 19:53:16 +0000 Subject: replace printlns with log --- azalea-protocol/src/packets/game/clientbound_commands_packet.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'azalea-protocol/src/packets') 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 { 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.", ); } -- cgit v1.2.3