From 733f01be8c2ca986e594816e73cb89ee1c8d105d Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Mon, 13 Oct 2025 22:10:38 +0200 Subject: feat: remove ktor (for a smaller binary) --- src/main/kotlin/commands/rome.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin/commands') diff --git a/src/main/kotlin/commands/rome.kt b/src/main/kotlin/commands/rome.kt index 97acf73..e22ca21 100644 --- a/src/main/kotlin/commands/rome.kt +++ b/src/main/kotlin/commands/rome.kt @@ -3,7 +3,7 @@ package moe.nea.firmament.commands import com.mojang.brigadier.CommandDispatcher import com.mojang.brigadier.arguments.IntegerArgumentType import com.mojang.brigadier.arguments.StringArgumentType.string -import io.ktor.client.statement.bodyAsText +import java.net.http.HttpResponse import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource import kotlinx.coroutines.launch import net.minecraft.command.CommandRegistryAccess @@ -302,7 +302,7 @@ fun firmamentCommand(ctx: CommandRegistryAccess) = literal("firmament") { thenExecute { Firmament.coroutineScope.launch { source.sendFeedback(Text.translatable("firmament.ursa.debugrequest.start")) - val text = UrsaManager.request(get(path).split("/")).bodyAsText() + val text = UrsaManager.request(get(path).split("/"), HttpResponse.BodyHandlers.ofString()) source.sendFeedback(Text.stringifiedTranslatable("firmament.ursa.debugrequest.result", text)) } } -- cgit