From af1ef9310093aa3c8dfd5054eb6d0b8c7c0d0b31 Mon Sep 17 00:00:00 2001 From: Yhgd <40905037+qwqawawow@users.noreply.github.com> Date: Thu, 19 Jun 2025 08:25:15 +0800 Subject: [PATCH] fix: parse int lists in TranslatableComponent `with` field (#225) --- azalea-chat/src/component.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/azalea-chat/src/component.rs b/azalea-chat/src/component.rs index 817d00b3..1cb2bf30 100644 --- a/azalea-chat/src/component.rs +++ b/azalea-chat/src/component.rs @@ -437,6 +437,10 @@ impl FormattedText { for item in with { with_array.push(StringOrComponent::String(item.to_string())); } + } else if let Some(with) = with_list.ints() { + for item in with { + with_array.push(StringOrComponent::String(item.to_string())); + } } else if let Some(with) = with_list.compounds() { for item in with { // if it's a string component with no styling and no siblings,