Skip to content

Commit

Permalink
TextComponent: Console text extra field (#356)
Browse files Browse the repository at this point in the history
* Handle extra in console
  • Loading branch information
Commandcracker authored Dec 2, 2024
1 parent 3fecdcb commit 5be43e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pumpkin-core/src/text/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ impl<'a> TextComponent<'a> {
text = format!("\x1b]8;;{}\x1b\\{}\x1b]8;;\x1b\\", url, text).to_string()
}
}
for child in self.extra {
text += &*child.to_pretty_console();
}
text
}
}
Expand Down

0 comments on commit 5be43e2

Please sign in to comment.