Skip to content

Add clientTickEndPacket feature flag (1.21.3+) - #1334

Open
maebahesioru wants to merge 1 commit into
PrismarineJS:masterfrom
maebahesioru:feature/client-tick-end-flag
Open

maebahesioru wants to merge 1 commit into
PrismarineJS:masterfrom
maebahesioru:feature/client-tick-end-flag

Conversation

@maebahesioru

Copy link
Copy Markdown

Feature-only diff, split out from the 26.3 stack per review feedback.

The tick_end packet (empty container, protocol name tick_end) has existed in the wire protocol since 1.21.3. A client that never sends it gets kicked on its second position-bearing move packet with multiplayer.disconnect.invalid_player_movement because the server only clears its per-tick bookkeeping in handleClientTickEnd.

This PR is just the feature flag (features.json, 8 lines) on top of current master, so it can merge independently of the 26.3 protocol/data work.

Refs: the original stacked branch is DallasCarraher/minecraft-data:pc-26.3-support (PR #1304 was opened from it before the split).

Found live-testing mineflayer against a local 26.3 server: decompiling
ServerGamePacketListenerImpl showed the server only clears its per-tick
receivedPositionThisTick/receivedMovementThisTick bookkeeping when it
receives a serverbound tick_end packet (handleClientTickEnd). A client
that never sends tick_end gets that flag stuck true after its first
position-bearing move packet, so the *second* one ever sent -- no
matter how much later -- gets it kicked with
multiplayer.disconnect.invalid_player_movement.

The tick_end packet (empty container, protocol name "tick_end") has
existed in the wire protocol since 1.21.3, but nothing in prismarine
land currently sends it. Add a feature flag so client implementations
can gate sending it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@maebahesioru
maebahesioru force-pushed the feature/client-tick-end-flag branch from 0fd7cf3 to 6c548cf Compare October 4, 2026 01:35

This branch has not been deployed

No deployments
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