fix: send dedicated attack packet on 26.1+

This commit is contained in:
Anon 2026-08-11 18:43:06 +02:00
parent 1fd4b0244d
commit 196dc54222

View file

@ -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)