Remove packet debugging code

This commit is contained in:
ORelio 2015-07-30 17:32:42 +02:00
parent 3a760240e4
commit 67f17cbb3e
2 changed files with 1 additions and 7 deletions

View file

@ -224,6 +224,7 @@ namespace MinecraftClient
}
}
catch (IOException) { }
catch (NullReferenceException) { }
}
/// <summary>

View file

@ -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