diff options
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/chat/CompactBestiaryChatMessage.kt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/CompactBestiaryChatMessage.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/CompactBestiaryChatMessage.kt index dcf532668..48d8b0e8c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chat/CompactBestiaryChatMessage.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/CompactBestiaryChatMessage.kt @@ -54,7 +54,7 @@ class CompactBestiaryChatMessage { } inBestiary = true blockedLines = 0 - bestiaryDescription.add(message.trim()) + bestiaryDescription.add(message) } else if (inBestiary) { event.blockedReason = "bestiary" blockedLines++ @@ -65,8 +65,9 @@ class CompactBestiaryChatMessage { if (message == border) { inBestiary = false - val title = bestiaryDescription[1] - LorenzUtils.hoverableChat("§6§lBESTIARY §r$title", bestiaryDescription.dropLast(1), command, false) + val list = bestiaryDescription.map { it.replace("§f", "").trim() } + val title = list[1] + LorenzUtils.hoverableChat("§6§lBESTIARY §r$title", list.dropLast(1), command, false) bestiaryDescription.clear() acceptMoreDescription = true @@ -80,7 +81,7 @@ class CompactBestiaryChatMessage { milestoneMessage = it.groups[1]!!.value } if (acceptMoreDescription) { - bestiaryDescription.add(message.trim()) + bestiaryDescription.add(message) } } } |