mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Bug fix
This commit is contained in:
parent
950d9bcfdc
commit
30e95f2d23
4 changed files with 13 additions and 4 deletions
|
|
@ -2434,6 +2434,8 @@ namespace MinecraftClient
|
||||||
if (protocolversion >= Protocol18Handler.MC_1_19_3_Version
|
if (protocolversion >= Protocol18Handler.MC_1_19_3_Version
|
||||||
&& playerKeyPair != null)
|
&& playerKeyPair != null)
|
||||||
handler.SendPlayerSession(playerKeyPair);
|
handler.SendPlayerSession(playerKeyPair);
|
||||||
|
|
||||||
|
if (protocolversion < Protocol18Handler.MC_1_19_3_Version)
|
||||||
CanSendMessage = true;
|
CanSendMessage = true;
|
||||||
|
|
||||||
if (inventoryHandlingRequested)
|
if (inventoryHandlingRequested)
|
||||||
|
|
@ -3480,6 +3482,11 @@ namespace MinecraftClient
|
||||||
ConsoleIO.OnAutoCompleteDone(transactionId, result);
|
ConsoleIO.OnAutoCompleteDone(transactionId, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void OnDeclareCommands()
|
||||||
|
{
|
||||||
|
CanSendMessage = true;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Send a click container button packet to the server.
|
/// Send a click container button packet to the server.
|
||||||
/// Used for Enchanting table, Lectern, stone cutter and loom
|
/// Used for Enchanting table, Lectern, stone cutter and loom
|
||||||
|
|
|
||||||
|
|
@ -104,9 +104,6 @@ namespace MinecraftClient.Protocol.Handlers.packet.s2c
|
||||||
|
|
||||||
private static void CollectSignArguments(int NodeIdx, string command, List<Tuple<string, string>> arguments)
|
private static void CollectSignArguments(int NodeIdx, string command, List<Tuple<string, string>> arguments)
|
||||||
{
|
{
|
||||||
if (Nodes.Length <= NodeIdx)
|
|
||||||
return;
|
|
||||||
|
|
||||||
CommandNode node = Nodes[NodeIdx];
|
CommandNode node = Nodes[NodeIdx];
|
||||||
string last_arg = command;
|
string last_arg = command;
|
||||||
switch (node.Flags & 0x03)
|
switch (node.Flags & 0x03)
|
||||||
|
|
|
||||||
|
|
@ -466,7 +466,10 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
break;
|
break;
|
||||||
case PacketTypesIn.DeclareCommands:
|
case PacketTypesIn.DeclareCommands:
|
||||||
if (protocolVersion >= MC_1_19_Version)
|
if (protocolVersion >= MC_1_19_Version)
|
||||||
|
{
|
||||||
DeclareCommands.Read(dataTypes, packetData, protocolVersion);
|
DeclareCommands.Read(dataTypes, packetData, protocolVersion);
|
||||||
|
handler.OnDeclareCommands();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case PacketTypesIn.ChatMessage:
|
case PacketTypesIn.ChatMessage:
|
||||||
int messageType = 0;
|
int messageType = 0;
|
||||||
|
|
|
||||||
|
|
@ -466,6 +466,8 @@ namespace MinecraftClient.Protocol
|
||||||
/// <param name="result">All commands.</param>
|
/// <param name="result">All commands.</param>
|
||||||
public void OnAutoCompleteDone(int transactionId, string[] result);
|
public void OnAutoCompleteDone(int transactionId, string[] result);
|
||||||
|
|
||||||
|
public void OnDeclareCommands();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Send a click container button packet to the server.
|
/// Send a click container button packet to the server.
|
||||||
/// Used for Enchanting table, Lectern, stone cutter and loom
|
/// Used for Enchanting table, Lectern, stone cutter and loom
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue