diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/matter/MatterManager.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/matter/MatterManager.kt index 7fdb9011d..d9d2f187c 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/matter/MatterManager.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/matter/MatterManager.kt @@ -1118,8 +1118,12 @@ object MatterManager { val commentary = getCommentary(event.itemStack.item) if (commentary != null) { - for (value in commentary) { - event.toolTip.add(value.withStyle(ChatFormatting.DARK_GRAY)) + if (commentary.size > 3) { + event.toolTip.add(TextComponent("...").withStyle(ChatFormatting.DARK_GRAY)) + } + + for (i in (commentary.size - 3).coerceAtLeast(0) until commentary.size) { + event.toolTip.add(commentary[i].withStyle(ChatFormatting.DARK_GRAY)) } } }