Update DeclareCommands for 1.19.3

This commit is contained in:
BruceChen 2023-01-14 20:43:32 +08:00
parent ba0d9ba3fc
commit d4b3c42d8c
4 changed files with 50 additions and 28 deletions

View file

@ -459,7 +459,7 @@ namespace MinecraftClient.Protocol.Handlers
break;
case PacketTypesIn.DeclareCommands:
if (protocolVersion >= MC_1_19_Version)
DeclareCommands.Read(dataTypes, packetData);
DeclareCommands.Read(dataTypes, packetData, protocolVersion);
break;
case PacketTypesIn.ChatMessage:
int messageType = 0;
@ -1997,9 +1997,9 @@ namespace MinecraftClient.Protocol.Handlers
innerException);
}
#else
catch (SocketException) { }
catch (ThreadAbortException) { }
catch (ObjectDisposedException) { }
catch (SocketException) { throw; }
catch (ThreadAbortException) { throw; }
catch (ObjectDisposedException) { throw; }
#endif
}