From cd4c6e2102ab5fa9d666abf5fa5bdd9538513f18 Mon Sep 17 00:00:00 2001 From: nea Date: Sun, 11 Jun 2023 00:30:51 +0200 Subject: Refactor commands --- src/main/kotlin/moe/nea/firmament/commands/rome.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/moe/nea/firmament/commands/rome.kt b/src/main/kotlin/moe/nea/firmament/commands/rome.kt index df5bc80..ff8c21e 100644 --- a/src/main/kotlin/moe/nea/firmament/commands/rome.kt +++ b/src/main/kotlin/moe/nea/firmament/commands/rome.kt @@ -72,7 +72,7 @@ fun firmamentCommand() = literal("firmament") { thenArgument("item", string()) { item -> suggestsList { RepoManager.neuRepo.items.items.keys } thenExecute { - val itemName = SkyblockId(getString(context, "item")) + val itemName = SkyblockId(get(item)) source.sendFeedback(Text.translatable("firmament.price", itemName.neuItem)) val bazaarData = ItemCostData.bazaarData[itemName] if (bazaarData != null) { -- cgit