Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.

Commit 7aca413

Browse files
committed
Bump Minestom
1 parent f626916 commit 7aca413

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

build.gradle.kts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ dependencies {
3333
compileOnly(kotlin("reflect"))
3434

3535
// Compile Minestom into project
36-
compileOnly("com.github.Minestom:Minestom:4ee5cbe424")
36+
compileOnly("com.github.Minestom:Minestom:7867313290")
3737

3838
// Get KStom
39-
compileOnly("com.github.Project-Cepi:KStom:f962764331")
39+
compileOnly("com.github.Project-Cepi:KStom:82f7000079")
4040

4141
// Items
4242
compileOnly("com.github.Project-Cepi:ItemExtension:848fbaa5d5")
@@ -45,16 +45,19 @@ dependencies {
4545
compileOnly("com.github.Project-Cepi:EconomyExtension:c4bc1b2484")
4646

4747
// import kotlinx serialization
48-
compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.0")
48+
compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3")
4949

5050
// Add actions
5151
compileOnly("com.github.Project-Cepi:Actions:fcb9bf6ddc")
5252

5353
// Canvas
54-
implementation("com.github.Project-Cepi:canvas:d3d937c54d")
54+
implementation("com.github.Project-Cepi:canvas:a61710f9e2")
5555

5656
// Add Kepi
5757
compileOnly("com.github.Project-Cepi:Kepi:23749ad45e")
58+
59+
// Add MiniMessage
60+
implementation("net.kyori:adventure-text-minimessage:4.10.1")
5861
}
5962

6063
tasks.withType<Test> {

src/main/kotlin/world/cepi/shops/commands/ShopCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ internal object ShopCommand: Kommand({
8686
val shop = context.get(shopID)
8787

8888
if (checkIsItem(player.itemInMainHand)) {
89-
val shopItem = player.itemInMainHand.meta.get<Item>(Item.key, itemSerializationModule)!!
89+
val shopItem = player.itemInMainHand.meta().get<Item>(Item.key, itemSerializationModule)!!
9090

9191
shop.items.add(ShopItem(shopItem, context.get(price)))
9292

src/main/kotlin/world/cepi/shops/shop/canvas/ShopUI.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ fun ShopUI(shop: Shop, player: Player) = fragment(9, 6) {
7676
return@onClick
7777
}
7878

79-
val priceAmount = heldItem.meta.getTag(Tag.Integer("price")) ?: run {
79+
val priceAmount = heldItem.meta().getTag(Tag.Integer("price")) ?: run {
8080
cantSellHandler()
8181
return@onClick
8282
}
@@ -86,7 +86,7 @@ fun ShopUI(shop: Shop, player: Player) = fragment(9, 6) {
8686
return@onClick
8787
}
8888

89-
EconomyHandler[player] += priceAmount * heldItem.amount.toLong()
89+
EconomyHandler[player] += priceAmount * heldItem.amount().toLong()
9090

9191
event.cursorItem = ItemStack.AIR
9292

0 commit comments

Comments
 (0)