diff options
| author | Linnea Gräf <nea@nea.moe> | 2025-04-01 01:37:55 +0200 |
|---|---|---|
| committer | Linnea Gräf <nea@nea.moe> | 2025-04-01 01:37:55 +0200 |
| commit | bda040c6c2cc77c9c1a06a61b2f13548d28d76ec (patch) | |
| tree | 3c48dc96cfd74a6a7d167e45eaccca0bec74fb12 /src/main/kotlin/features/inventory/REIDependencyWarner.kt | |
| parent | 4f4652bb0d50dfd37297a573ad73ef9cd1a8e92d (diff) | |
| download | Firmament-mc1.21.5.tar.gz Firmament-mc1.21.5.tar.bz2 Firmament-mc1.21.5.zip | |
WIP: Port some 1.21.5 thingsmc1.21.5
Diffstat (limited to 'src/main/kotlin/features/inventory/REIDependencyWarner.kt')
| -rw-r--r-- | src/main/kotlin/features/inventory/REIDependencyWarner.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/kotlin/features/inventory/REIDependencyWarner.kt b/src/main/kotlin/features/inventory/REIDependencyWarner.kt index 1e9b1b8..7d88dd1 100644 --- a/src/main/kotlin/features/inventory/REIDependencyWarner.kt +++ b/src/main/kotlin/features/inventory/REIDependencyWarner.kt @@ -1,5 +1,6 @@ package moe.nea.firmament.features.inventory +import java.net.URI import net.fabricmc.loader.api.FabricLoader import kotlinx.coroutines.delay import kotlinx.coroutines.launch @@ -38,7 +39,7 @@ object REIDependencyWarner { .white() .append(Text.literal("[").aqua()) .append(Text.translatable("firmament.download", modName) - .styled { it.withClickEvent(ClickEvent(ClickEvent.Action.OPEN_URL, modrinthLink(slug))) } + .styled { it.withClickEvent(ClickEvent.OpenUrl(URI (modrinthLink(slug)))) } .yellow() .also { if (alreadyDownloaded) |
