mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
Merge branch 'main' into options
This commit is contained in:
commit
c1fc7589a8
2 changed files with 2 additions and 2 deletions
|
@ -89,7 +89,7 @@ impl Display for TextComponent {
|
|||
for component in Component::Text(self.clone()).into_iter() {
|
||||
let component_text = match &component {
|
||||
Component::Text(c) => c.text.to_string(),
|
||||
Component::Translatable(c) => c.to_string(),
|
||||
Component::Translatable(c) => c.read()?.to_string(),
|
||||
};
|
||||
|
||||
f.write_str(&component_text)?;
|
||||
|
|
|
@ -121,7 +121,7 @@ impl Display for TranslatableComponent {
|
|||
for component in Component::Translatable(self.clone()).into_iter() {
|
||||
let component_text = match &component {
|
||||
Component::Text(c) => c.text.to_string(),
|
||||
Component::Translatable(c) => c.to_string(),
|
||||
Component::Translatable(c) => c.read()?.to_string(),
|
||||
};
|
||||
|
||||
f.write_str(&component_text)?;
|
||||
|
|
Loading…
Add table
Reference in a new issue