From e240dac55bf198921c06136e7dbaad59233857da Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sun, 6 Jan 2019 08:47:29 -0500 Subject: [PATCH] No need to bring in Gson instance, when toString() does the same thing. --- .../proxy/connection/client/ConnectedPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java index 281448d02..ea4134b8e 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java @@ -193,7 +193,7 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player { // legacy message and then inject the legacy text into a component... yuck! JsonObject object = new JsonObject(); object.addProperty("text", ComponentSerializers.LEGACY.serialize(component)); - json = VelocityServer.GSON.toJson(object); + json = object.toString(); } } else { json = ComponentSerializers.JSON.serialize(component);