From 67f17cbb3e02b061a3a1716eae9bf328625a53fb Mon Sep 17 00:00:00 2001 From: ORelio Date: Thu, 30 Jul 2015 17:32:42 +0200 Subject: [PATCH] Remove packet debugging code --- MinecraftClient/McTcpClient.cs | 1 + MinecraftClient/Protocol/Handlers/Protocol18.cs | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/MinecraftClient/McTcpClient.cs b/MinecraftClient/McTcpClient.cs index db8b66fa..0817755c 100644 --- a/MinecraftClient/McTcpClient.cs +++ b/MinecraftClient/McTcpClient.cs @@ -224,6 +224,7 @@ namespace MinecraftClient } } catch (IOException) { } + catch (NullReferenceException) { } } /// diff --git a/MinecraftClient/Protocol/Handlers/Protocol18.cs b/MinecraftClient/Protocol/Handlers/Protocol18.cs index 4e663ae2..6cfbf89b 100644 --- a/MinecraftClient/Protocol/Handlers/Protocol18.cs +++ b/MinecraftClient/Protocol/Handlers/Protocol18.cs @@ -120,13 +120,6 @@ namespace MinecraftClient.Protocol.Handlers private bool handlePacket(int packetID, byte[] packetData) { - if (new[] { 0x00, 0x02, 0x38, 0x3A, 0x40 }.Contains(packetID)) - ConsoleIO.WriteLineFormatted("§aP 0x" + packetID.ToString("x2")); //Process - else if (packetID <= 64) - ConsoleIO.WriteLineFormatted("§fS 0x" + packetID.ToString("x2")); //Skip - else - ConsoleIO.WriteLineFormatted("§c? 0x" + packetID.ToString("x2")); //Invalid - if (login_phase) { switch (packetID) //Packet IDs are different while logging in