Skip to content

Commit

Permalink
remember to send TwoWayPing ExtEntry to client
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Jun 21, 2017
1 parent 032ac9e commit bc4d84a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fCraft/Network/Player.Handshake.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ static void WriteVarInt(int value, byte[] buffer, int offset) {

bool NegotiateProtocolExtension() {
// write our ExtInfo and ExtEntry packets
writer.Write(Packet.MakeExtInfo("ProCraft", 25).Bytes);
writer.Write(Packet.MakeExtInfo("ProCraft", 28).Bytes);

writer.Write(Packet.MakeExtEntry(ClickDistanceExtName, 1).Bytes);
writer.Write(Packet.MakeExtEntry(CustomBlocksExtName, 1).Bytes);
writer.Write(Packet.MakeExtEntry(HeldBlockExtName, 1).Bytes);
Expand Down Expand Up @@ -250,7 +251,8 @@ bool NegotiateProtocolExtension() {
writer.Write(Packet.MakeExtEntry(EnvMapAspectExtName, 1).Bytes);
writer.Write(Packet.MakeExtEntry(ExtPlayerPositionsExtName, 1).Bytes);

writer.Write(Packet.MakeExtEntry(EntityPropertyExtName, 1).Bytes);
writer.Write(Packet.MakeExtEntry(EntityPropertyExtName, 1).Bytes);
writer.Write(Packet.MakeExtEntry(TwoWayPingExtName, 1).Bytes);

// Fix for ClassiCube Client which violates the spec -
// If server supports version > 1 but client version 1, client should reply with version 1.
Expand Down

0 comments on commit bc4d84a

Please sign in to comment.