mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-02-11 15:29:30 +08:00
No need to bring in Gson instance, when toString() does the same thing.
This commit is contained in:
parent
c30974a148
commit
e240dac55b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user