From f15455543e2117e3dc6b9d474d8f8104ec613173 Mon Sep 17 00:00:00 2001 From: MiniDay <372403923@qq.com> Date: Sat, 29 Oct 2022 17:28:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B6=88=E6=81=AF=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=A2=AB=E6=8E=A5=E6=94=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/hamster3/mc/plugin/ball/common/api/BallAPI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hamster-ball-common/src/main/java/cn/hamster3/mc/plugin/ball/common/api/BallAPI.java b/hamster-ball-common/src/main/java/cn/hamster3/mc/plugin/ball/common/api/BallAPI.java index 042bc02..1e1d25c 100644 --- a/hamster-ball-common/src/main/java/cn/hamster3/mc/plugin/ball/common/api/BallAPI.java +++ b/hamster-ball-common/src/main/java/cn/hamster3/mc/plugin/ball/common/api/BallAPI.java @@ -630,7 +630,7 @@ public abstract class BallAPI { getLogger().warning("由于服务不可用,有一条消息发送失败了: " + messageInfo); return; } - ChannelFuture future = channel.writeAndFlush(CoreConstantObjects.GSON.toJsonTree(messageInfo)); + ChannelFuture future = channel.writeAndFlush(CoreConstantObjects.GSON.toJson(messageInfo)); if (block) { try { future.await();