1
2
Fork 0
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:
mat 2022-10-21 22:37:04 -05:00
commit c1fc7589a8
2 changed files with 2 additions and 2 deletions

View file

@ -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)?;

View file

@ -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)?;