Skip to content

fix(protocol): complete 26.60 attack swing framing and checks - #467

Merged
Exterminate5573 merged 2 commits into
ViaVersionAddons:update/r26u6from
StackAnvil:fix/26-60-packet-omissions
Oct 28, 2026
Merged

Exterminate5573 merged 2 commits into
ViaVersionAddons:update/r26u6from
StackAnvil:fix/26-60-packet-omissions

Conversation

@AlexProgrammerDE

Copy link
Copy Markdown
Collaborator

Follow-up to #466, targeting update/r26u6.

Explicit entity attacks call ClientPlayerEntity.sendSwingPacketToServer(), which still writes the old Animate layout. Append the protocol-2225 main-hand byte, matching the updated ordinary punch path. Without that byte, BDS rejects the attack swing packet.

Also fix the nine checkstyle errors introduced by the version update: non-final reader locals, unused decoded fields, and the release record's indentation. Intentionally unused fields remain consumed in the same order.

Validation:

  • ./gradlew build passes, including main and tool checkstyle.
  • A separate byte-level probe invokes the actual attack helper and compares its serialized packet with native 1.26.60.5 / BDS 1.26.60.6 protocol-2225 bytes. The original Update to 1.26.60 #466 helper fails because the trailing hand byte is missing; the corrected helper matches.

Protocol 2225 adds a trailing hand byte to Animate. The ordinary punch writer already supplies it, but the explicit attack helper still emits the old layout and BDS rejects that packet. Match the main-hand field used by the updated punch path.
The new readers introduce nine checkstyle errors: unused decoded fields, non-final locals, and a misindented record closing parenthesis. Consume intentionally unused fields without assigning locals and retain the existing packet behavior.
@AlexProgrammerDE
AlexProgrammerDE marked this pull request as ready for review October 28, 2026 08:17
@AlexProgrammerDE
AlexProgrammerDE marked this pull request as draft October 28, 2026 08:17
@Exterminate5573
Exterminate5573 marked this pull request as ready for review October 28, 2026 08:22
@Exterminate5573
Exterminate5573 merged commit d4371a2 into ViaVersionAddons:update/r26u6 Oct 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants