From 1d06409451bf1649cba399c518eb1cdb6eb27f96 Mon Sep 17 00:00:00 2001 From: NetheriteMiner <88792142+NetheriteMiner@users.noreply.github.com> Date: Thu, 7 Sep 2023 07:50:58 -0400 Subject: Fix: translator incorrectly modifying vanilla colors (#436) --- src/main/java/at/hannibal2/skyhanni/features/chat/Translator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2') 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 { -- cgit