Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Fix styled text highlight crash #78

Merged
merged 3 commits into from
Mar 23, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class MiniMessageHighlighter(private val standardTags: TagResolver) {
instance.deserializeToTree(input)
} catch (e: Exception) {
// https://github.com/KyoriPowered/adventure/issues/1011
return literalText(input, style().red())
return literalText(input, style().red()).asComponent()
}
buildNewInput(root)
return instance.deserialize(newInput.toString())
Expand Down