An other fix

This commit is contained in:
Auxilor 2022-10-04 00:14:39 +01:00
parent 6b77dc74d9
commit cc856989f6

View File

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