From 5836295c28b22a6c484730f8a02d986c31c9416a Mon Sep 17 00:00:00 2001 From: qwqawawow Date: Wed, 18 Jun 2025 11:56:28 +0800 Subject: [PATCH] fix: parse int lists in TranslatableComponent `with` field --- 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,