This commit is contained in:
BruceChen 2023-01-16 04:04:56 +08:00
parent 950d9bcfdc
commit 30e95f2d23
4 changed files with 13 additions and 4 deletions

View file

@ -2434,7 +2434,9 @@ namespace MinecraftClient
if (protocolversion >= Protocol18Handler.MC_1_19_3_Version
&& playerKeyPair != null)
handler.SendPlayerSession(playerKeyPair);
CanSendMessage = true;
if (protocolversion < Protocol18Handler.MC_1_19_3_Version)
CanSendMessage = true;
if (inventoryHandlingRequested)
{
@ -3480,6 +3482,11 @@ namespace MinecraftClient
ConsoleIO.OnAutoCompleteDone(transactionId, result);
}
public void OnDeclareCommands()
{
CanSendMessage = true;
}
/// <summary>
/// Send a click container button packet to the server.
/// Used for Enchanting table, Lectern, stone cutter and loom