mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
fix stack overflow in az-chat
This commit is contained in:
parent
3fbbe5e93d
commit
9c67ce9a30
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() {
|
for component in Component::Text(self.clone()).into_iter() {
|
||||||
let component_text = match &component {
|
let component_text = match &component {
|
||||||
Component::Text(c) => c.text.to_string(),
|
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)?;
|
f.write_str(&component_text)?;
|
||||||
|
|
|
@ -121,7 +121,7 @@ impl Display for TranslatableComponent {
|
||||||
for component in Component::Translatable(self.clone()).into_iter() {
|
for component in Component::Translatable(self.clone()).into_iter() {
|
||||||
let component_text = match &component {
|
let component_text = match &component {
|
||||||
Component::Text(c) => c.text.to_string(),
|
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)?;
|
f.write_str(&component_text)?;
|
||||||
|
|
Loading…
Add table
Reference in a new issue