diff options
| author | Yhgd <40905037+qwqawawow@users.noreply.github.com> | 2025-06-19 08:25:15 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-18 19:25:15 -0500 |
| commit | af1ef9310093aa3c8dfd5054eb6d0b8c7c0d0b31 (patch) | |
| tree | 8a565ce5fbddb917676037ee298262cacc08d07f | |
| parent | 844697c04c030af19e63fd6af28aeb42519da7e1 (diff) | |
| download | azalea-drasl-af1ef9310093aa3c8dfd5054eb6d0b8c7c0d0b31.tar.xz | |
fix: parse int lists in TranslatableComponent `with` field (#225)
| -rw-r--r-- | azalea-chat/src/component.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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, |
