aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/commands/rome.kt
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-06-11 00:30:51 +0200
committernea <nea@nea.moe>2023-06-11 00:30:51 +0200
commitcd4c6e2102ab5fa9d666abf5fa5bdd9538513f18 (patch)
tree6b4937905c78309cbcef46457f46feac603ee611 /src/main/kotlin/moe/nea/firmament/commands/rome.kt
parent2df2ee1f18a26755e6fc4d9f1752338aa48cd3e9 (diff)
downloadfirmament-cd4c6e2102ab5fa9d666abf5fa5bdd9538513f18.tar.gz
firmament-cd4c6e2102ab5fa9d666abf5fa5bdd9538513f18.tar.bz2
firmament-cd4c6e2102ab5fa9d666abf5fa5bdd9538513f18.zip
Refactor commands
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/commands/rome.kt')
-rw-r--r--src/main/kotlin/moe/nea/firmament/commands/rome.kt2
1 files changed, 1 insertions, 1 deletions
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) {