From 649f30296f61256312aa6a78e761fd44c3f35ef5 Mon Sep 17 00:00:00 2001 From: bluefireoly Date: Fri, 30 Oct 2020 21:51:16 +0100 Subject: [PATCH] Update ItemStackUtils.kt --- .../kotlin/net/axay/kspigot/items/ItemStackUtils.kt | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/main/kotlin/net/axay/kspigot/items/ItemStackUtils.kt b/src/main/kotlin/net/axay/kspigot/items/ItemStackUtils.kt index 9a339451..3b9851f4 100644 --- a/src/main/kotlin/net/axay/kspigot/items/ItemStackUtils.kt +++ b/src/main/kotlin/net/axay/kspigot/items/ItemStackUtils.kt @@ -7,15 +7,7 @@ import net.md_5.bungee.api.ChatColor * Converts this string into a list of strings, which * can be used for minecraft lorelists. */ -@Suppress("RemoveRedundantSpreadOperator") -fun String.toLoreList(lineLength: Int = 40, lineColor: ChatColor = KColors.RESET) - = toLoreList(lineLength, *arrayOf(lineColor)) - -/** - * Converts this string into a list of strings, which - * can be used for minecraft lorelists. - */ -fun String.toLoreList(lineLength: Int = 40, vararg lineColors: ChatColor = arrayOf(KColors.RESET)): List { +fun String.toLoreList(vararg lineColors: ChatColor = arrayOf(KColors.RESET), lineLength: Int = 40): List { val lineColor = lineColors.joinToString()