From f9a7c201b165960bf7d3e04cccb893c3b3d7b001 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Fri, 23 Dec 2016 16:24:00 +1100 Subject: [PATCH] Allow client to server ping packet --- MCGalaxy/Player/Player.Handlers.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MCGalaxy/Player/Player.Handlers.cs b/MCGalaxy/Player/Player.Handlers.cs index 137aa572d..5c7dca8b4 100644 --- a/MCGalaxy/Player/Player.Handlers.cs +++ b/MCGalaxy/Player/Player.Handlers.cs @@ -227,6 +227,7 @@ namespace MCGalaxy { case Opcode.CpeExtEntry: return 69; case Opcode.CpeCustomBlockSupportLevel: return 2; case Opcode.CpePlayerClick: return 15; + case Opcode.Ping: return 1; default: if (!dontmindme) { @@ -239,6 +240,7 @@ namespace MCGalaxy { void HandlePacket(byte[] buffer) { switch (buffer[0]) { + case Opcode.Ping: break; case Opcode.Handshake: HandleLogin(buffer); break; case Opcode.SetBlockClient: