aboutsummaryrefslogtreecommitdiff
path: root/minecraft-chat/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-12-09 17:31:58 +0000
committermat <github@matdoes.dev>2021-12-09 17:31:58 +0000
commit1637e23c6c96feb30d09e472692387621ceb2cce (patch)
treeba3370151c041dd5ead10507344c15dc97eb06ec /minecraft-chat/src
parent577c2aa5444db727c23ceae565a8648d6f6a41f4 (diff)
downloadazalea-drasl-1637e23c6c96feb30d09e472692387621ceb2cce.tar.xz
fix formatters
Diffstat (limited to 'minecraft-chat/src')
-rw-r--r--minecraft-chat/src/style.rs10
1 files changed, 5 insertions, 5 deletions
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");
}