From 0dce5f56ce8c4ec0eb3ee4eb6c09b20956242dfa Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 10 Dec 2021 18:03:28 +0000 Subject: add formatting to some motds --- minecraft-chat/src/splitter.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 minecraft-chat/src/splitter.rs (limited to 'minecraft-chat/src/splitter.rs') diff --git a/minecraft-chat/src/splitter.rs b/minecraft-chat/src/splitter.rs new file mode 100644 index 00000000..812c3365 --- /dev/null +++ b/minecraft-chat/src/splitter.rs @@ -0,0 +1,7 @@ +//! Used for splitting text +//! This includes wrapping long lines and applying legacy color formats. +//! I'm not sure why applying legacy color formats is done here but that's the way Minecraft does it. + +use crate::component::Component; + +fn split_lines(component: Component) {} -- cgit v1.2.3