3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-25 15:50:10 +01:00

Merge pull request #32 from StamBoom/master

Fix TabList header/footer gives (By non-json Strings) MalformedJsonException
Dieser Commit ist enthalten in:
Myles 2016-03-02 10:05:26 +00:00
Commit 06296ead77

Datei anzeigen

@ -106,6 +106,13 @@ public class OutgoingTransformer {
output.writeBytes(input); output.writeBytes(input);
return; return;
} }
if (packet == PacketType.PLAY_PLAYER_LIST_HEADER_FOOTER) {
String header = readString(input);
String footer = readString(input);
writeString(fixJson(header), output);
writeString(fixJson(footer), output);
return;
}
if (packet == PacketType.PLAY_ENTITY_TELEPORT) { if (packet == PacketType.PLAY_ENTITY_TELEPORT) {
// Port this so that it relative moves :P // Port this so that it relative moves :P
int id = PacketUtil.readVarInt(input); int id = PacketUtil.readVarInt(input);