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:
Ursprung
1b89327d84
Commit
c72f8f766d
@ -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);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren