From c72f8f766ddde1c8b922dddb0a81396e58a1155b Mon Sep 17 00:00:00 2001 From: KennyTV Date: Mon, 24 Aug 2020 13:02:16 +0200 Subject: [PATCH] *Actually* don't cast the ping description --- .../protocol/protocol1_15_2to1_16/Protocol1_15_2To1_16.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_15_2to1_16/Protocol1_15_2To1_16.java b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_15_2to1_16/Protocol1_15_2To1_16.java index 802134e9..d7d7e136 100644 --- a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_15_2to1_16/Protocol1_15_2To1_16.java +++ b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_15_2to1_16/Protocol1_15_2To1_16.java @@ -60,7 +60,7 @@ public class Protocol1_15_2To1_16 extends BackwardsProtocol { String original = wrapper.passthrough(Type.STRING); JsonObject object = GsonUtil.getGson().fromJson(original, JsonObject.class); - JsonElement description = object.getAsJsonObject("description"); + JsonElement description = object.get("description"); if (description == null) return; translatableRewriter.processText(description);