3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-11-20 06:50:10 +01:00

*Actually* don't cast the ping description

Dieser Commit ist enthalten in:
KennyTV 2020-08-24 13:02:16 +02:00
Ursprung 1b89327d84
Commit c72f8f766d
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B

Datei anzeigen

@ -60,7 +60,7 @@ public class Protocol1_15_2To1_16 extends BackwardsProtocol<ClientboundPackets1_
handler(wrapper -> { handler(wrapper -> {
String original = wrapper.passthrough(Type.STRING); String original = wrapper.passthrough(Type.STRING);
JsonObject object = GsonUtil.getGson().fromJson(original, JsonObject.class); JsonObject object = GsonUtil.getGson().fromJson(original, JsonObject.class);
JsonElement description = object.getAsJsonObject("description"); JsonElement description = object.get("description");
if (description == null) return; if (description == null) return;
translatableRewriter.processText(description); translatableRewriter.processText(description);