From 5044ec965b74055b5bdf2d40b40433ac42132c67 Mon Sep 17 00:00:00 2001 From: Anon Date: Tue, 12 Mar 2024 19:07:20 +0100 Subject: [PATCH] Un-commended try-catch block --- MinecraftClient/Protocol/Handlers/Protocol18.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MinecraftClient/Protocol/Handlers/Protocol18.cs b/MinecraftClient/Protocol/Handlers/Protocol18.cs index 9fff7bfe..3268ec22 100644 --- a/MinecraftClient/Protocol/Handlers/Protocol18.cs +++ b/MinecraftClient/Protocol/Handlers/Protocol18.cs @@ -370,8 +370,8 @@ namespace MinecraftClient.Protocol.Handlers /// TRUE if the packet was processed, FALSE if ignored or unknown internal bool HandlePacket(int packetId, Queue packetData) { - //try - //{ + try + { switch (currentState) { // https://wiki.vg/Protocol#Login @@ -454,7 +454,7 @@ namespace MinecraftClient.Protocol.Handlers default: return true; } - /*} + } catch (Exception innerException) { if (innerException is ThreadAbortException || innerException is SocketException || @@ -469,7 +469,7 @@ namespace MinecraftClient.Protocol.Handlers currentState == CurrentState.Login, innerException.GetType()), innerException); - }*/ + } return true; }