Merge pull request #32 from StamBoom/master

Fix TabList header/footer gives (By non-json Strings) MalformedJsonException
This commit is contained in:
Myles 2016-03-02 10:05:26 +00:00
commit 06296ead77
1 changed files with 7 additions and 0 deletions

View File

@ -106,6 +106,13 @@ public class OutgoingTransformer {
output.writeBytes(input);
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) {
// Port this so that it relative moves :P
int id = PacketUtil.readVarInt(input);