mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
1.19.3 Chat command signing support & Update chat paser
This commit is contained in:
parent
fe0b268878
commit
0ce9690778
6 changed files with 164 additions and 103 deletions
|
|
@ -64,6 +64,7 @@ namespace MinecraftClient
|
|||
private double motionY;
|
||||
public enum MovementType { Sneak, Walk, Sprint }
|
||||
private int sequenceId; // User for player block synchronization (Aka. digging, placing blocks, etc..)
|
||||
private bool CanSendMessage = false;
|
||||
|
||||
private readonly string host;
|
||||
private readonly int port;
|
||||
|
|
@ -286,6 +287,9 @@ namespace MinecraftClient
|
|||
/// </summary>
|
||||
private void TrySendMessageToServer()
|
||||
{
|
||||
if (!CanSendMessage)
|
||||
return;
|
||||
|
||||
while (chatQueue.Count > 0 && nextMessageSendTime < DateTime.Now)
|
||||
{
|
||||
string text = chatQueue.Dequeue();
|
||||
|
|
@ -2411,7 +2415,7 @@ namespace MinecraftClient
|
|||
if (protocolversion >= Protocol18Handler.MC_1_19_3_Version
|
||||
&& playerKeyPair != null)
|
||||
handler.SendPlayerSession(playerKeyPair);
|
||||
|
||||
CanSendMessage = true;
|
||||
|
||||
if (inventoryHandlingRequested)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue