aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-04-21 23:06:31 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-04-21 23:06:31 +0200
commit59d5e664cd5cd5b6fc4a40d4ecfee3842871bb2e (patch)
tree2986e141d4a1ca0180094894d0a7f343fb1df450
parent2c448cf20f20936c3d4c83ff29c0bf043fe6394f (diff)
downloadskyhanni-59d5e664cd5cd5b6fc4a40d4ecfee3842871bb2e.tar.gz
skyhanni-59d5e664cd5cd5b6fc4a40d4ecfee3842871bb2e.tar.bz2
skyhanni-59d5e664cd5cd5b6fc4a40d4ecfee3842871bb2e.zip
wording
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/chat/PlayerMessagesConfig.java2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/chat/PlayerMessagesConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/chat/PlayerMessagesConfig.java
index b7b4cc792..8e279b1e3 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/chat/PlayerMessagesConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/chat/PlayerMessagesConfig.java
@@ -13,7 +13,7 @@ import java.util.List;
public class PlayerMessagesConfig {
@Expose
- @ConfigOption(name = "Enable Chat Formatting", desc = "Enable player caht modifications. Required for all settings below.")
+ @ConfigOption(name = "Enable Chat Formatting", desc = "Enable player chat modifications. Required for all settings below.")
@ConfigEditorBoolean
@FeatureToggle
public boolean enable = true;
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt
index 433078b5f..56a366dc3 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt
@@ -335,9 +335,9 @@ object StringUtils {
return null
}
- val originalText = LorenzUtils.stripVanillaMessage(original.formattedText)
- val newTextt = LorenzUtils.stripVanillaMessage(newText)
- if (originalText == newTextt) return null
+ val originalClean = LorenzUtils.stripVanillaMessage(original.formattedText)
+ val newTextClean = LorenzUtils.stripVanillaMessage(newText)
+ if (originalClean == newTextClean) return null
val text = ChatComponentText(newText)
if (size == 1) {