From 5be43e2cb140e6995cabf761f65520b6b86229ac Mon Sep 17 00:00:00 2001 From: Commandcracker <49335821+Commandcracker@users.noreply.github.com> Date: Mon, 2 Dec 2024 19:28:40 +0100 Subject: [PATCH] TextComponent: Console text extra field (#356) * Handle extra in console --- pumpkin-core/src/text/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pumpkin-core/src/text/mod.rs b/pumpkin-core/src/text/mod.rs index 9ff32701..419ef2e8 100644 --- a/pumpkin-core/src/text/mod.rs +++ b/pumpkin-core/src/text/mod.rs @@ -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 } }