Skip to content
Permalink
Browse files

remember to send TwoWayPing ExtEntry to client

  • Loading branch information...
UnknownShadow200 committed Jun 21, 2017
1 parent 032ac9e commit bc4d84af78a7d867f572ec29ee73eba735b3fdec
Showing with 4 additions and 2 deletions.
  1. +4 −2 fCraft/Network/Player.Handshake.cs
@@ -217,7 +217,8 @@ public class Players {

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);
@@ -250,7 +251,8 @@ public class Players {
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.

0 comments on commit bc4d84a

Please sign in to comment.
You can’t perform that action at this time.