From e485cf550183445e5f063c6da078c97e9b66497f Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 15 Aug 2024 23:33:23 +0000 Subject: fix incorrect comment in with_microsoft_access_token docs --- azalea-chat/src/translatable_component.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'azalea-chat/src') diff --git a/azalea-chat/src/translatable_component.rs b/azalea-chat/src/translatable_component.rs index 912271ae..82c84d85 100755 --- a/azalea-chat/src/translatable_component.rs +++ b/azalea-chat/src/translatable_component.rs @@ -51,6 +51,8 @@ fn serialize_args_as_nbt(args: &[StringOrComponent]) -> simdnbt::owned::NbtList // if it's all components then make it a compound list // if it's a mix then return an error + use tracing::debug; + let mut string_list = Vec::new(); let mut compound_list = Vec::new(); @@ -68,9 +70,7 @@ fn serialize_args_as_nbt(args: &[StringOrComponent]) -> simdnbt::owned::NbtList if !string_list.is_empty() && !compound_list.is_empty() { // i'm actually not sure what vanilla does here, so i just made it return the // string list - tracing::debug!( - "Tried to serialize a TranslatableComponent with a mix of strings and components." - ); + debug!("Tried to serialize a TranslatableComponent with a mix of strings and components."); return string_list.into(); } -- cgit v1.2.3