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:
parent
844697c04c
commit
af1ef93100
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue