mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
fix: send dedicated attack packet on 26.1+
This commit is contained in:
parent
1fd4b0244d
commit
196dc54222
1 changed files with 7 additions and 0 deletions
|
|
@ -5721,6 +5721,13 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
{
|
||||
List<byte> fields = new();
|
||||
fields.AddRange(DataTypes.GetVarInt(EntityID));
|
||||
|
||||
if (protocolVersion >= MC_26_1_Version && type == (int)InteractType.Attack)
|
||||
{
|
||||
SendPacket(PacketTypesOut.Attack, fields);
|
||||
return true;
|
||||
}
|
||||
|
||||
fields.AddRange(DataTypes.GetVarInt(type));
|
||||
|
||||
// Is player Sneaking (Only 1.16 and above)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue