Skip to content

Commit cffdefb

Browse files
committed
Update to 1.20.4
1 parent e8e4c9a commit cffdefb

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ allprojects {
3838
}
3939
maven("https://api.modrinth.com/maven")
4040
maven("https://oss.sonatype.org/content/repositories/snapshots")
41+
// net.kyori:adventure-text-serializer-gson dev builds
42+
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
4143
}
4244

4345
// Declare dependencies

libs.versions.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[versions]
2-
minecraft = "1.20.2"
3-
fabric-loader = "0.14.23"
4-
yarn-mappings = "1.20.2+build.1"
2+
minecraft = "1.20.4"
3+
fabric-loader = "0.15.1"
4+
yarn-mappings = "1.20.4+build.1"
55

6-
fabric-api = "0.90.0+1.20.2"
6+
fabric-api = "0.91.2+1.20.4"
77

88
# Kotlin
99
fabric-kotlin = "1.9.4+kotlin.1.8.21"
@@ -12,11 +12,11 @@ fabric-kotlin = "1.9.4+kotlin.1.8.21"
1212
kord-extensions = "1.5.6"
1313
mc-discord-reserializer = "4.3.0"
1414
emoji-java = "5.1.1"
15-
adventure-gson = "4.11.0"
15+
adventure-gson = "4.15.0-SNAPSHOT"
1616

17-
placeholder-api = "2.2.0+1.20.2"
17+
placeholder-api = "2.3.0+1.20.3"
1818
permission-api = "0.3-SNAPSHOT"
19-
vanish-api = "1.4.3+1.20.2"
19+
vanish-api = "1.5.0+1.20.3-rc1"
2020
konf = "1.1.2"
2121

2222
[libraries]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class BlockBotApiExtension : Extension(), Bot {
210210
x += stepSize
211211
}
212212

213-
list.add(NbtString.of(Text.Serializer.toJson(text)))
213+
list.add(NbtString.of(Text.Serialization.toJsonString(text)))
214214
y += stepSize
215215
x = 0
216216
}

src/main/kotlin/io/github/quiltservertools/blockbotdiscord/utility/Extensions.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ fun Message.summary(): String {
2323

2424
fun GameProfile.getTextures() = Iterables.getFirst(this.properties.get("textures"), null)?.value
2525

26-
fun Component.toNative(): MutableText = Text.Serializer.fromJson(GsonComponentSerializer.gson().serialize(this))?: Text.empty()
26+
fun Component.toNative(): MutableText = Text.Serialization.fromJson(GsonComponentSerializer.gson().serialize(this))?: Text.empty()
2727

28-
fun Text.toAdventure() = GsonComponentSerializer.gson().deserialize(Text.Serializer.toJson(this))
28+
fun Text.toAdventure() = GsonComponentSerializer.gson().deserialize(Text.Serialization.toJsonString(this))
2929

3030
fun ServerPlayerEntity.isVanished() = FabricLoader.getInstance().isModLoaded("melius-vanish") && VanishAPI.isVanished(this)

0 commit comments

Comments
 (0)