3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-12-24 23:30:26 +01:00

No need to bring in Gson instance, when toString() does the same thing.

Dieser Commit ist enthalten in:
Andrew Steinborn 2019-01-06 08:47:29 -05:00
Ursprung c30974a148
Commit e240dac55b

Datei anzeigen

@ -193,7 +193,7 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
// legacy message and then inject the legacy text into a component... yuck! // legacy message and then inject the legacy text into a component... yuck!
JsonObject object = new JsonObject(); JsonObject object = new JsonObject();
object.addProperty("text", ComponentSerializers.LEGACY.serialize(component)); object.addProperty("text", ComponentSerializers.LEGACY.serialize(component));
json = VelocityServer.GSON.toJson(object); json = object.toString();
} }
} else { } else {
json = ComponentSerializers.JSON.serialize(component); json = ComponentSerializers.JSON.serialize(component);