mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Update DeclareCommands for 1.19.3
This commit is contained in:
parent
ba0d9ba3fc
commit
d4b3c42d8c
4 changed files with 50 additions and 28 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue