mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-31 21:48:08 +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")
|
||||
|
||||
// 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-text-serializer-gson"
|
||||
api "net.kyori:adventure-text-serializer-plain"
|
||||
|
@ -55,7 +55,7 @@ public abstract class JsonMessage implements ComponentLike {
|
||||
|
||||
@Override
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user