diff options
author | NetheriteMiner <88792142+NetheriteMiner@users.noreply.github.com> | 2023-09-07 07:50:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-07 13:50:58 +0200 |
commit | 1d06409451bf1649cba399c518eb1cdb6eb27f96 (patch) | |
tree | 53cd5fd1acdb66be1544986f34231845872a1830 | |
parent | ecd56746aa4246784e518e377852f168af7eb092 (diff) | |
download | skyhanni-1d06409451bf1649cba399c518eb1cdb6eb27f96.tar.gz skyhanni-1d06409451bf1649cba399c518eb1cdb6eb27f96.tar.bz2 skyhanni-1d06409451bf1649cba399c518eb1cdb6eb27f96.zip |
Fix: translator incorrectly modifying vanilla colors (#436)
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/chat/Translator.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/Translator.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/Translator.kt index 4b0c24ccf..1274fbdf2 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chat/Translator.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/Translator.kt @@ -38,7 +38,7 @@ class Translator { if (!messageContentRegex.matches(message.removeColor())) return val clickStyle = createClickStyle(message) - chatComponent.setChatStyle(clickStyle) + chatComponent.siblings.last().setChatStyle(clickStyle) } private fun createClickStyle(message: String): ChatStyle { |