More fixes

This commit is contained in:
Auxilor 2022-10-04 00:11:28 +01:00
parent 2a2b958e3c
commit 6b77dc74d9

View File

@ -255,11 +255,11 @@ private fun EcoEnchant.getInformationSlot(plugin: EcoEnchantsPlugin): Slot {
enchant.conflicts.joinToString(", ") { conflict ->
conflict.wrap().getFormattedName(0).toWrappable()
}.ifEmpty { plugin.langYml.getFormattedString("no-conflicts") }
}
}.toWrappable()
)
}
.flatMap {
WordUtils.wrap(it, 45, "\n", false)
WordUtils.wrap(it, 40, "\n", false)
.lines()
.map { s -> s.replaceInWrappable() }
.mapIndexed { index, s ->