From 721e27eb39cc86fddfb9086b793331f1a6022749 Mon Sep 17 00:00:00 2001 From: EnZaXD Date: Sat, 27 Jul 2024 19:53:44 +0200 Subject: [PATCH] Rewrite show_item in translation components in 1.11.1->1.12 (#4053) Fixes https://github.com/ViaVersion/ViaVersion/issues/4051 --- .../protocols/v1_11_1to1_12/data/ChatItemRewriter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/v1_11_1to1_12/data/ChatItemRewriter.java b/common/src/main/java/com/viaversion/viaversion/protocols/v1_11_1to1_12/data/ChatItemRewriter.java index b94b1ce44..d840d35a1 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/v1_11_1to1_12/data/ChatItemRewriter.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/v1_11_1to1_12/data/ChatItemRewriter.java @@ -46,6 +46,8 @@ public final class ChatItemRewriter { } } else if (obj.has("extra")) { toClient(obj.get("extra")); + } else if (obj.has("translate") && obj.has("with")) { + toClient(obj.get("with")); } } else if (element instanceof final JsonArray array) { for (JsonElement value : array) {