mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-02-22 05:31:27 +01:00
An other fix
This commit is contained in:
parent
6b77dc74d9
commit
cc856989f6
@ -250,16 +250,16 @@ private fun EcoEnchant.getInformationSlot(plugin: EcoEnchantsPlugin): Slot {
|
|||||||
.replace(
|
.replace(
|
||||||
"%conflicts%",
|
"%conflicts%",
|
||||||
if (enchant.conflictsWithEverything) {
|
if (enchant.conflictsWithEverything) {
|
||||||
plugin.langYml.getFormattedString("all-conflicts")
|
plugin.langYml.getFormattedString("all-conflicts").toWrappable()
|
||||||
} else {
|
} else {
|
||||||
enchant.conflicts.joinToString(", ") { conflict ->
|
enchant.conflicts.joinToString(", ") { conflict ->
|
||||||
conflict.wrap().getFormattedName(0).toWrappable()
|
conflict.wrap().getFormattedName(0).toWrappable()
|
||||||
}.ifEmpty { plugin.langYml.getFormattedString("no-conflicts") }
|
}.ifEmpty { plugin.langYml.getFormattedString("no-conflicts").toWrappable() }
|
||||||
}.toWrappable()
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
.flatMap {
|
.flatMap {
|
||||||
WordUtils.wrap(it, 40, "\n", false)
|
WordUtils.wrap(it, 45, "\n", false)
|
||||||
.lines()
|
.lines()
|
||||||
.map { s -> s.replaceInWrappable() }
|
.map { s -> s.replaceInWrappable() }
|
||||||
.mapIndexed { index, s ->
|
.mapIndexed { index, s ->
|
||||||
|
Loading…
Reference in New Issue
Block a user