mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Try fix BadPackets
This commit is contained in:
parent
7fba4fb9ab
commit
dee085686f
3 changed files with 7 additions and 10 deletions
|
|
@ -938,7 +938,7 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
{
|
||||
List<byte> bytes = new()
|
||||
{
|
||||
(byte)Convert.ToByte(paramBool)
|
||||
Convert.ToByte(paramBool)
|
||||
};
|
||||
return bytes.ToArray();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -353,8 +353,7 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
handler.OnServerKeepAlive();
|
||||
break;
|
||||
case PacketTypesIn.Ping:
|
||||
int ID = dataTypes.ReadNextInt(packetData);
|
||||
SendPacket(PacketTypesOut.Pong, dataTypes.GetInt(ID));
|
||||
SendPacket(PacketTypesOut.Pong, packetData);
|
||||
break;
|
||||
case PacketTypesIn.JoinGame:
|
||||
handler.OnGameJoined();
|
||||
|
|
@ -1383,10 +1382,8 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
byte windowID = dataTypes.ReadNextByte(packetData);
|
||||
short actionID = dataTypes.ReadNextShort(packetData);
|
||||
bool accepted = dataTypes.ReadNextBool(packetData);
|
||||
if (!accepted)
|
||||
{
|
||||
if (!accepted && actionID > 0)
|
||||
SendWindowConfirmation(windowID, actionID, accepted);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case PacketTypesIn.ResourcePackSend:
|
||||
|
|
|
|||
|
|
@ -50,11 +50,11 @@ If you'd like to contribute to Minecraft Console Client, great, just fork the re
|
|||
Check out: [How to update or add translations for MCC](https://mccteam.github.io/guide/contibuting.html#translations).
|
||||
|
||||
MCC now supports the following languages (Alphabetical order) :
|
||||
* `de.ini` (57.12% translated) : Deutsch - German
|
||||
* `de.ini` (54.64% translated) : Deutsch - German
|
||||
* `en.ini` : English - English
|
||||
* `fr.ini` (57.12% translated) : Français (France) - French
|
||||
* `ru.ini` (56.18% translated) : Русский (Russkiy) - Russian
|
||||
* `vi.ini` (56.18% translated) : Tiếng Việt (Việt Nam) - Vietnamese
|
||||
* `fr.ini` (54.64% translated) : Français (France) - French
|
||||
* `ru.ini` (53.74% translated) : Русский (Russkiy) - Russian
|
||||
* `vi.ini` (53.74% translated) : Tiếng Việt (Việt Nam) - Vietnamese
|
||||
* `zh-Hans.ini` (100.00% translated) : 简体中文 - Chinese Simplified
|
||||
* `zh-Hant.ini` (100.00% translated) : 繁體中文 - Chinese Traditional
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue