1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00

fix: parse int lists in TranslatableComponent with field

This commit is contained in:
qwqawawow 2025-06-18 11:56:28 +08:00
parent ffbe7a3e42
commit 5836295c28

View file

@ -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,