Skip to content

Commit 1d9d93d

Browse files
Update to 1.21.5
1 parent 36c5dcf commit 1d9d93d

File tree

9 files changed

+53
-36
lines changed

9 files changed

+53
-36
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import org.jetbrains.changelog.Changelog
33
plugins {
44
java
55
id("maven-publish")
6-
id("fabric-loom") version "1.9.+"
6+
id("fabric-loom") version "1.10.+"
77
kotlin("jvm") version "2.1.10"
88
id("io.github.goooler.shadow") version "8.1.7"
99
kotlin("plugin.serialization") version "2.1.10"

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Mod
22
modName = BlockBot Discord
33
modId = blockbot-discord
4-
modVersion = 2.0.2
4+
modVersion = 2.0.3
55
mavenGroup = io.github.quiltservertools
66

77
# Other

gradle/wrapper/gradle-wrapper.jar

-16.8 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

gradlew

Lines changed: 24 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 13 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs.versions.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[versions]
2-
minecraft = "1.21.4"
3-
curseforge-minecraft="1.21.4"
4-
fabric-loader = "0.16.10"
5-
yarn-mappings = "1.21.4+build.8"
2+
minecraft = "1.21.5"
3+
curseforge-minecraft="1.21.5"
4+
fabric-loader = "0.16.13"
5+
yarn-mappings = "1.21.5+build.1"
66

7-
fabric-api = "0.118.0+1.21.4"
7+
fabric-api = "0.120.0+1.21.5"
88

99
# Kotlin
1010
fabric-kotlin = "1.13.1+kotlin.2.1.10"
@@ -15,7 +15,7 @@ mc-discord-reserializer = "4.3.0"
1515
emoji-java = "5.1.1"
1616
adventure-gson = "4.19.0"
1717

18-
placeholder-api = "2.5.2+1.21.3"
18+
placeholder-api = "2.6.2+1.21.5"
1919
permission-api = "0.3.3"
2020
vanish-api = "1.5.11+1.21.4"
2121
konf = "1.1.2"

src/main/kotlin/io/github/quiltservertools/blockbotdiscord/extensions/BlockBotApiExtension.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ import net.minecraft.util.ActionResult
5656
import net.minecraft.util.Formatting
5757
import net.minecraft.util.math.MathHelper.clamp
5858
import org.koin.core.component.inject
59+
import java.net.URI
5960
import java.net.URL
6061
import javax.imageio.ImageIO
6162
import kotlin.math.ceil
@@ -218,12 +219,12 @@ class BlockBotApiExtension : Extension(), Bot {
218219
val stack = ItemStack(Items.STICK)
219220
stack.set(DataComponentTypes.LORE, LoreComponent(list))
220221
stack.set(DataComponentTypes.CUSTOM_NAME, Text.empty())
221-
hoverEvent = HoverEvent(HoverEvent.Action.SHOW_ITEM, HoverEvent.ItemStackContent(stack))
222+
hoverEvent = HoverEvent.ShowItem(stack)
222223
}
223224

224225
attachments.add("[${attachment.filename}]".literal().styled {
225226
it.withColor(Formatting.BLUE)
226-
.withClickEvent(ClickEvent(ClickEvent.Action.OPEN_URL, attachment.url))
227+
.withClickEvent(ClickEvent.OpenUrl(URI(attachment.url)))
227228
.withHoverEvent(hoverEvent)
228229
})
229230
}
@@ -232,7 +233,7 @@ class BlockBotApiExtension : Extension(), Bot {
232233
for (stickerItem in message.stickers) {
233234
val sticker = stickerItem.getSticker()
234235
attachments.add("[Sticker: ${sticker.name}]".literal().styled {
235-
it.withHoverEvent(HoverEvent(HoverEvent.Action.SHOW_TEXT, (sticker.description ?: "").literal()))
236+
it.withHoverEvent(HoverEvent.ShowText((sticker.description ?: "").literal()))
236237
})
237238
}
238239

src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"blockbot-discord.mixins.json"
2727
],
2828
"depends": {
29-
"minecraft": ">=1.21",
29+
"minecraft": ">=1.21.5",
3030
"blockbot-api": ">=1.0.0",
3131
"fabric-language-kotlin": ">=1.9.4+kotlin.1.8.21",
3232
"fabric": ">=${fabricApi}",

0 commit comments

Comments
 (0)