Skip to content

fix(SwingMode): follow 26.3 swing animation and packet rules - #6740

Merged
Big-Iron-Cheems merged 1 commit into
MeteorDevelopment:masterfrom
MukjepScarlet:fix/swings
Oct 20, 2026
Merged

Big-Iron-Cheems merged 1 commit into
MeteorDevelopment:masterfrom
MukjepScarlet:fix/swings

Conversation

@MukjepScarlet

@MukjepScarlet MukjepScarlet commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Type of change

  • Bug fix
  • New feature

Description

26.3 moved the swing packet out of LocalPlayer.swing into the attack paths: interaction swings are predicted locally and broadcast by the server from its own interaction result, while attacks still need ServerboundPunchPacket.

SwingMode now exposes attackSwing (attack animation + packet) and interactSwing (interact animation, never a packet), with of(boolean) as an adapter for the existing boolean call sites. Every call site is reclassified, which also fixes the wrong animation on interaction and block-breaking paths, spurious punch packets after interactions, swing checks that accepted Fail/SERVER_ONLY results, and attack swings that stopped notifying the server after the 26.3 migration.

Related issues

No issue yet

How Has This Been Tested?

//

Checklist:

  • My code follows the style guidelines of this project.
  • I have added comments to my code in more complex areas.
  • I have tested the code in both development and production environments.

26.3 moved the swing packet out of LocalPlayer.swing into the attack paths:
interaction swings are predicted locally and broadcast by the server from its own
interaction result, while attacks still need `ServerboundPunchPacket`.

SwingMode now exposes attackSwing (attack animation + packet) and interactSwing
(interact animation, never a packet), with `of(boolean)` as an adapter for the existing
boolean call sites. Every call site is reclassified, which also fixes the wrong
animation on interaction and block-breaking paths, spurious punch packets after
interactions, swing checks that accepted `Fail`/`SERVER_ONLY` results, and attack swings
that stopped notifying the server after the 26.3 migration.
@Big-Iron-Cheems
Big-Iron-Cheems merged commit 8d3d8c9 into MeteorDevelopment:master Oct 20, 2026
1 check passed
@MukjepScarlet
MukjepScarlet deleted the fix/swings branch October 20, 2026 15:23
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