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+
Some checks failed
Build MCC and Documents / determine-build (push) Has been cancelled
Build MCC and Documents / fetch-translations (push) Has been cancelled
Build MCC and Documents / create-tag (push) Has been cancelled
Build MCC and Documents / build (linux-arm) (push) Has been cancelled
Build MCC and Documents / build (linux-arm64) (push) Has been cancelled
Build MCC and Documents / build (linux-x64) (push) Has been cancelled
Build MCC and Documents / build (osx-arm64) (push) Has been cancelled
Build MCC and Documents / build (osx-x64) (push) Has been cancelled
Build MCC and Documents / build (win-arm64) (push) Has been cancelled
Build MCC and Documents / build (win-x64) (push) Has been cancelled
Build MCC and Documents / build (win-x86) (push) Has been cancelled
Build MCC and Documents / create-release (push) Has been cancelled
Some checks failed
Build MCC and Documents / determine-build (push) Has been cancelled
Build MCC and Documents / fetch-translations (push) Has been cancelled
Build MCC and Documents / create-tag (push) Has been cancelled
Build MCC and Documents / build (linux-arm) (push) Has been cancelled
Build MCC and Documents / build (linux-arm64) (push) Has been cancelled
Build MCC and Documents / build (linux-x64) (push) Has been cancelled
Build MCC and Documents / build (osx-arm64) (push) Has been cancelled
Build MCC and Documents / build (osx-x64) (push) Has been cancelled
Build MCC and Documents / build (win-arm64) (push) Has been cancelled
Build MCC and Documents / build (win-x64) (push) Has been cancelled
Build MCC and Documents / build (win-x86) (push) Has been cancelled
Build MCC and Documents / create-release (push) Has been cancelled
fix: send dedicated attack packet on 26.1+
This commit is contained in:
commit
d50e90d860
1 changed files with 7 additions and 0 deletions
|
|
@ -5721,6 +5721,13 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
{
|
{
|
||||||
List<byte> fields = new();
|
List<byte> fields = new();
|
||||||
fields.AddRange(DataTypes.GetVarInt(EntityID));
|
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));
|
fields.AddRange(DataTypes.GetVarInt(type));
|
||||||
|
|
||||||
// Is player Sneaking (Only 1.16 and above)
|
// Is player Sneaking (Only 1.16 and above)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue