mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-12-04 21:01:02 -05:00
Remove unnecessary MessageSerializer function
This commit is contained in:
parent
157133173c
commit
b43dcab2e1
1 changed files with 0 additions and 4 deletions
|
@ -60,10 +60,6 @@ public class MessageSerializer {
|
|||
return toJson(message).toString();
|
||||
}
|
||||
|
||||
public static String toJsonAsString(Message message) {
|
||||
return toJson(message).getAsString();
|
||||
}
|
||||
|
||||
public static JsonElement toJson(Message message) {
|
||||
if(message instanceof TextMessage && message.getStyle().equals(MessageStyle.DEFAULT) && message.getExtra().isEmpty()) {
|
||||
return new JsonPrimitive(((TextMessage) message).getText());
|
||||
|
|
Loading…
Reference in a new issue