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

fix: parse int lists in TranslatableComponent with field (#225)

This commit is contained in:
Yhgd 2025-06-19 08:25:15 +08:00 committed by GitHub
parent 844697c04c
commit af1ef93100
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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,