mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-03 23:17:48 +01:00
bump adventure to 4.7.0
This commit is contained in:
parent
aea8a5f794
commit
4ef62a1017
@ -184,7 +184,7 @@ dependencies {
|
|||||||
generatorsImplementation("com.squareup:javapoet:1.13.0")
|
generatorsImplementation("com.squareup:javapoet:1.13.0")
|
||||||
|
|
||||||
// Adventure, for text messages
|
// Adventure, for text messages
|
||||||
api platform("net.kyori:adventure-bom:4.6.0")
|
api platform("net.kyori:adventure-bom:4.7.0")
|
||||||
api "net.kyori:adventure-api"
|
api "net.kyori:adventure-api"
|
||||||
api "net.kyori:adventure-text-serializer-gson"
|
api "net.kyori:adventure-text-serializer-gson"
|
||||||
api "net.kyori:adventure-text-serializer-plain"
|
api "net.kyori:adventure-text-serializer-plain"
|
||||||
|
@ -55,7 +55,7 @@ public abstract class JsonMessage implements ComponentLike {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @NotNull Component asComponent() {
|
public @NotNull Component asComponent() {
|
||||||
return GsonComponentSerializer.gson().serializer().fromJson(this.getJsonObject(), Component.class);
|
return GsonComponentSerializer.gson().deserializeFromTree(this.getJsonObject());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static @NotNull JsonMessage fromComponent(@NotNull Component component) {
|
public static @NotNull JsonMessage fromComponent(@NotNull Component component) {
|
||||||
|
Loading…
Reference in New Issue
Block a user