mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Implemented new Delcare Command packet for new versions 1.20.6-1.21.11 and fixed it for 1.20.4.
This commit is contained in:
parent
b4e69da81f
commit
e2746ae0d1
4 changed files with 804 additions and 666 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -3702,8 +3702,13 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
try
|
||||
{
|
||||
List<Tuple<string, string>>? needSigned = null;
|
||||
bool canSignCommand = protocolVersion >= MC_1_19_Version &&
|
||||
isOnlineMode &&
|
||||
playerKeyPair != null &&
|
||||
Config.Signature.LoginWithSecureProfile &&
|
||||
Config.Signature.SignMessageInCommand;
|
||||
|
||||
if (protocolVersion >= MC_1_19_Version && Config.Signature is { LoginWithSecureProfile: true, SignMessageInCommand: true })
|
||||
if (canSignCommand)
|
||||
{
|
||||
if (DeclareCommands.IsCommandTreeAvailable)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue