From 8bf938de89677286703adbb694b38dc464bb7fd1 Mon Sep 17 00:00:00 2001 From: zealerker22 <97942218+zealerker22@users.noreply.github.com> Date: Sat, 20 Jul 2024 17:26:01 -0400 Subject: [PATCH] fixed first() incorrect placement --- .../skytils/skytilsmod/features/impl/misc/ItemFeatures.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/gg/skytils/skytilsmod/features/impl/misc/ItemFeatures.kt b/src/main/kotlin/gg/skytils/skytilsmod/features/impl/misc/ItemFeatures.kt index e9c868534..bbf4bbbe9 100644 --- a/src/main/kotlin/gg/skytils/skytilsmod/features/impl/misc/ItemFeatures.kt +++ b/src/main/kotlin/gg/skytils/skytilsmod/features/impl/misc/ItemFeatures.kt @@ -602,11 +602,11 @@ object ItemFeatures { val prefix: String = if (enchant != null) { val parts = enchant.loreName.split(" ") val joined = if (parts.size > 1) parts.joinToString("") { it[0].uppercase() } - else if (parts[0].startsWith("Turbo-")) "${ - parts[0].split("-").first().take(3).toTitleCase() + else if (parts.first().startsWith("Turbo-")) "${ + parts.first().split("-")[1].take(3).toTitleCase() }." else "${ - parts[0].take(3).toTitleCase() + parts.first().take(3).toTitleCase() }." if (enchant.nbtName.startsWith("ultimate")) { "§d§l${joined}"