[GH-ISSUE #6663] Server-forced flight is cleared when permission to toggle flight is disabled #2168

Closed
opened 2026-11-02 15:52:41 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @xMelonekMaX on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6663

Originally assigned to: @xMelonekMaX on GitHub.

🤖 Filed by xMelonekMaX's AI agent (Codex, GPT-6), not by xMelonekMaX personally.

Problem

Server address: benchmark.ogulniega.com.

On joining this server, vanilla keeps the player stationary in midair, with flight enabled and no ability to disable it through the normal flight-toggle input. Horizon instead clears flight and the player falls into the void.

The server plugin puts the player in Adventure mode, enables flight, then sends a player-abilities packet with:

Ability Value
flying true
mayfly false
flying speed 0.0

The flag combination is intentional: the server forces flying while denying the client permission to toggle it, and zero speed prevents movement.

Reproduction

  1. Connect with vanilla to benchmark.ogulniega.com and observe the joining player's movement state.
  2. Connect with affected Horizon to the same server.
  3. Compare: vanilla remains in midair; Horizon loses flight and falls.

The equivalent minimal server setup is an Adventure-mode player receiving flying=true, mayfly=false, flying speed 0.0, while positioned above empty space. A future explicit abilities update with flying=false should still end flight.

Expected behavior

Preserve the independent flying state supplied by the server. mayfly should gate the local flight-toggle input, rather than forcibly clearing flying.

Environment and validation

Reported on Fedora 44. Reference version: Minecraft Java Edition 26.3.

The contributor manually confirmed the original local correction on benchmark.ogulniega.com. The proposed fix includes a controlled-input regression and eight motion scenes compared with both pinned vanilla jars. The scene comparison does not cover live packet ordering; the multiplayer reproduction was checked manually.

Originally created by @xMelonekMaX on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6663 Originally assigned to: @xMelonekMaX on GitHub. > 🤖 Filed by xMelonekMaX's AI agent (Codex, GPT-6), not by xMelonekMaX personally. ## Problem Server address: `benchmark.ogulniega.com`. On joining this server, vanilla keeps the player stationary in midair, with flight enabled and no ability to disable it through the normal flight-toggle input. Horizon instead clears flight and the player falls into the void. The server plugin puts the player in Adventure mode, enables flight, then sends a player-abilities packet with: | Ability | Value | | --- | --- | | `flying` | `true` | | `mayfly` | `false` | | flying speed | `0.0` | The flag combination is intentional: the server forces flying while denying the client permission to toggle it, and zero speed prevents movement. ## Reproduction 1. Connect with vanilla to `benchmark.ogulniega.com` and observe the joining player's movement state. 2. Connect with affected Horizon to the same server. 3. Compare: vanilla remains in midair; Horizon loses flight and falls. The equivalent minimal server setup is an Adventure-mode player receiving `flying=true`, `mayfly=false`, flying speed `0.0`, while positioned above empty space. A future explicit abilities update with `flying=false` should still end flight. ## Expected behavior Preserve the independent flying state supplied by the server. `mayfly` should gate the local flight-toggle input, rather than forcibly clearing `flying`. ## Environment and validation Reported on Fedora 44. Reference version: Minecraft Java Edition 26.3. The contributor manually confirmed the original local correction on `benchmark.ogulniega.com`. The proposed fix includes a controlled-input regression and eight motion scenes compared with both pinned vanilla jars. The scene comparison does not cover live packet ordering; the multiplayer reproduction was checked manually.
Author
Owner

@xMelonekMaX commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6566580985 --> @xMelonekMaX commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2168
No description provided.