From b6c263e9fd60652847a467db2cb2a757014520dd Mon Sep 17 00:00:00 2001 From: Kieran Wallbanks Date: Tue, 19 Oct 2021 10:57:15 +0100 Subject: [PATCH] extra-kotlin: Add some `JoinConfiguration` related methods --- .../net/kyori/adventure/extra/kotlin/ComponentExtensions.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extra-kotlin/src/main/kotlin/net/kyori/adventure/extra/kotlin/ComponentExtensions.kt b/extra-kotlin/src/main/kotlin/net/kyori/adventure/extra/kotlin/ComponentExtensions.kt index 801ae0376..07c85bb24 100644 --- a/extra-kotlin/src/main/kotlin/net/kyori/adventure/extra/kotlin/ComponentExtensions.kt +++ b/extra-kotlin/src/main/kotlin/net/kyori/adventure/extra/kotlin/ComponentExtensions.kt @@ -42,7 +42,7 @@ operator fun Component.plus(that: ComponentLike): Component = this.append(that) * @return the resulting component * @since 4.10.0 */ -public fun Array.join(config: JoinConfiguration = JoinConfiguration.noSeparators()): Component = +public fun Array.join(config: JoinConfiguration = JoinConfiguration.noSeparators()): Component = this.toList().join(config) /** @@ -52,5 +52,5 @@ public fun Array.join(config: JoinConfiguration = JoinCon * @return the resulting component * @since 4.10.0 */ -public fun Iterable.join(config: JoinConfiguration = JoinConfiguration.noSeparators()): Component = +public fun Iterable.join(config: JoinConfiguration = JoinConfiguration.noSeparators()): Component = Component.join(config, this)