From cc856989f657ff06589fbb0f89783c3d6d6837f2 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Tue, 4 Oct 2022 00:14:39 +0100 Subject: [PATCH] An other fix --- .../kotlin/com/willfp/ecoenchants/enchants/EnchantGUI.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchants/EnchantGUI.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchants/EnchantGUI.kt index 1e6a2f93..5cfc7b97 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchants/EnchantGUI.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchants/EnchantGUI.kt @@ -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 ->