Rewrite show_item in translation components in 1.11.1->1.12 (#4053)

Fixes https://github.com/ViaVersion/ViaVersion/issues/4051
This commit is contained in:
EnZaXD 2024-07-27 19:53:44 +02:00 committed by GitHub
parent c9d6fbfcd0
commit 721e27eb39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {