3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-07-01 21:18:02 +02:00

Remove fix which got merged into MCStructs (#3836)

Dieser Commit ist enthalten in:
EnZaXD 2024-05-09 20:04:36 +02:00 committet von GitHub
Ursprung 4c7729e602
Commit 8c4ff7ebfc
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: B5690EEEBB952194

Datei anzeigen

@ -93,14 +93,7 @@ public class Protocol1_9To1_8 extends AbstractProtocol<ClientboundPackets1_8, Cl
return;
}
final String reason = wrapper.read(Type.STRING);
try {
STRING_TO_JSON.write(wrapper, reason);
} catch (Exception e) {
// Dirty fix for https://github.com/Lenni0451/MCStructs/issues/4, I personally don't think it matters
// too much since it's only the login disconnect message and nothing relevant to the gameplay
wrapper.write(Type.COMPONENT, ComponentUtil.plainToJson(reason));
}
STRING_TO_JSON.write(wrapper, wrapper.read(Type.STRING));
});
// Other Handlers