From c7a0149ebf672fba6001ada3109341afc101b60c Mon Sep 17 00:00:00 2001 From: twisti-dev <76837088+twisti-dev@users.noreply.github.com> Date: Mon, 22 Jun 2026 00:06:41 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore:=20update=20version=20to?= =?UTF-8?q?=203.27.3=20and=20ensure=20Adventure=204=20compatibility=20in?= =?UTF-8?q?=20buildText0=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gradle.properties | 2 +- .../kotlin/dev/slne/surf/api/core/messages/CommonComponents.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index bf78a88b..896ffc14 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,6 +7,6 @@ org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled javaVersion=25 mcVersion=26.2 group=dev.slne.surf.api -version=3.27.2 +version=3.27.3 relocationPrefix=dev.slne.surf.api.libs snapshot=false diff --git a/surf-api-core/surf-api-core/src/main/kotlin/dev/slne/surf/api/core/messages/CommonComponents.kt b/surf-api-core/surf-api-core/src/main/kotlin/dev/slne/surf/api/core/messages/CommonComponents.kt index 4940819b..f4efe67b 100644 --- a/surf-api-core/surf-api-core/src/main/kotlin/dev/slne/surf/api/core/messages/CommonComponents.kt +++ b/surf-api-core/surf-api-core/src/main/kotlin/dev/slne/surf/api/core/messages/CommonComponents.kt @@ -27,7 +27,7 @@ import kotlin.time.Duration */ @PublishedApi internal inline fun buildText0(block: TextComponent.Builder.() -> Unit): TextComponent { - return Component.text().apply(block).build() + return Component.text().apply(block).asComponent() as TextComponent // Adventure 4 backwards compatibility } /**