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:
parent
ffbe7a3e42
commit
5836295c28
1 changed files with 4 additions and 0 deletions
|
@ -437,6 +437,10 @@ impl FormattedText {
|
||||||
for item in with {
|
for item in with {
|
||||||
with_array.push(StringOrComponent::String(item.to_string()));
|
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() {
|
} else if let Some(with) = with_list.compounds() {
|
||||||
for item in with {
|
for item in with {
|
||||||
// if it's a string component with no styling and no siblings,
|
// if it's a string component with no styling and no siblings,
|
||||||
|
|
Loading…
Add table
Reference in a new issue