mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Un-commended try-catch block
This commit is contained in:
parent
2ce0311949
commit
5044ec965b
1 changed files with 4 additions and 4 deletions
|
|
@ -370,8 +370,8 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
/// <returns>TRUE if the packet was processed, FALSE if ignored or unknown</returns>
|
/// <returns>TRUE if the packet was processed, FALSE if ignored or unknown</returns>
|
||||||
internal bool HandlePacket(int packetId, Queue<byte> packetData)
|
internal bool HandlePacket(int packetId, Queue<byte> packetData)
|
||||||
{
|
{
|
||||||
//try
|
try
|
||||||
//{
|
{
|
||||||
switch (currentState)
|
switch (currentState)
|
||||||
{
|
{
|
||||||
// https://wiki.vg/Protocol#Login
|
// https://wiki.vg/Protocol#Login
|
||||||
|
|
@ -454,7 +454,7 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
default:
|
default:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
/*}
|
}
|
||||||
catch (Exception innerException)
|
catch (Exception innerException)
|
||||||
{
|
{
|
||||||
if (innerException is ThreadAbortException || innerException is SocketException ||
|
if (innerException is ThreadAbortException || innerException is SocketException ||
|
||||||
|
|
@ -469,7 +469,7 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
currentState == CurrentState.Login,
|
currentState == CurrentState.Login,
|
||||||
innerException.GetType()),
|
innerException.GetType()),
|
||||||
innerException);
|
innerException);
|
||||||
}*/
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue