mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
ConsoleIcon support Windows 10 on new Console & OnLatencyUpdate Event (#1044)
* new ConsoleIcon support * Update ChatBot.cs + OnLatencyUpdate * Update McTcpClient.cs + OnLatencyUpdate * Update Protocol18.cs + OnLatencyUpdate * Update IMinecraftComHandler.cs + OnLatencyUpdate * Update Protocol18.cs + BugFix * Update ConsoleIcon.cs
This commit is contained in:
parent
85f5117833
commit
b800bbcb37
5 changed files with 65 additions and 4 deletions
|
|
@ -448,7 +448,8 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
handler.OnGamemodeUpdate(uuid, gamemode);
|
||||
break;
|
||||
case 0x02: //Update latency
|
||||
dataTypes.ReadNextVarInt(packetData);
|
||||
int latency = dataTypes.ReadNextVarInt(packetData);
|
||||
handler.OnLatencyUpdate(uuid, latency); //Update latency;
|
||||
break;
|
||||
case 0x03: //Update display name
|
||||
if (dataTypes.ReadNextBool(packetData))
|
||||
|
|
@ -1390,6 +1391,8 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
Container inventory = handler.GetInventory(windowId);
|
||||
if (inventory.Items.ContainsKey(slotId))
|
||||
inventory.Items[slotId].Count--; // server won't update us after dropped
|
||||
if (inventory.Items[slotId].Count == 0)
|
||||
inventory.Items.Remove(slotId);
|
||||
break;
|
||||
case WindowActionType.DropItemStack:
|
||||
button = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue