From 1637e23c6c96feb30d09e472692387621ceb2cce Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 9 Dec 2021 17:31:58 +0000 Subject: fix formatters --- minecraft-chat/src/style.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'minecraft-chat/src') diff --git a/minecraft-chat/src/style.rs b/minecraft-chat/src/style.rs index e87bd999..dfbfe8ce 100644 --- a/minecraft-chat/src/style.rs +++ b/minecraft-chat/src/style.rs @@ -300,23 +300,23 @@ impl Style { }; // if bold used to be false/default and now it's true, set bold - if before.bold.unwrap_or(false) && !after.bold.unwrap_or(false) { + if !before.bold.unwrap_or(false) && after.bold.unwrap_or(false) { ansi_codes.push_str("\x1b[1m"); } // if italic used to be false/default and now it's true, set italic - if before.italic.unwrap_or(false) && !after.italic.unwrap_or(false) { + if !before.italic.unwrap_or(false) && after.italic.unwrap_or(false) { ansi_codes.push_str("\x1b[3m"); } // if underlined used to be false/default and now it's true, set underlined - if before.underlined.unwrap_or(false) && !after.underlined.unwrap_or(false) { + if !before.underlined.unwrap_or(false) && after.underlined.unwrap_or(false) { ansi_codes.push_str("\x1b[4m"); } // if strikethrough used to be false/default and now it's true, set strikethrough - if before.strikethrough.unwrap_or(false) && !after.strikethrough.unwrap_or(false) { + if !before.strikethrough.unwrap_or(false) && after.strikethrough.unwrap_or(false) { ansi_codes.push_str("\x1b[9m"); } // if obfuscated used to be false/default and now it's true, set obfuscated - if before.obfuscated.unwrap_or(false) && !after.obfuscated.unwrap_or(false) { + if !before.obfuscated.unwrap_or(false) && after.obfuscated.unwrap_or(false) { ansi_codes.push_str("\x1b[8m"); } -- cgit v1.2.3